io: refactoring for using WriteVarBytes instead of WriteLE
goal is to be consistent with C# implementation. For writing []byte WriteBytes used and for byte - WriteVarByte.
This commit is contained in:
parent
d02673c112
commit
03ff2976ed
20 changed files with 33 additions and 34 deletions
|
@ -69,7 +69,7 @@ func TestWriterErrHandling(t *testing.T) {
|
|||
bw.WriteLE(uint32(0))
|
||||
bw.WriteBE(uint32(0))
|
||||
bw.WriteVarUint(0)
|
||||
bw.WriteBytes([]byte{0x55, 0xaa})
|
||||
bw.WriteVarBytes([]byte{0x55, 0xaa})
|
||||
bw.WriteString("neo")
|
||||
assert.NotNil(t, bw.Err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue