# Functions
EqualAsUint16Slice casts &[]T into *[]uint16 and performs a comparison.
EqualAsUint32Slice casts &[]T into *[]uint32 and performs a comparison.
EqualAsUint64 casts &T to an *uint64 and performs a comparison.
EqualAsUint64Slice casts &[]T into *[]uint64 and performs a comparison.
EqualAsUint8Slice casts &[]T into *[]uint8 and performs a comparison.
NewBuffer creates a new Buffer struct with buff as a backing []byte.
NewBufferSize creates a new Buffer with size capacity.
Read reads a slice of bytes from r and copies it on c.
ReadAsUint16 reads an uint16 from r and stores the result into c with pointer type casting into type T.
ReadAsUint16Slice reads a slice of uint16 from r and stores the result into c with pointer type casting into type T.
ReadAsUint32 reads an uint32 from r and stores the result into c with pointer type casting into type T.
ReadAsUint32Slice reads a slice of uint32 from r and stores the result into c with pointer type casting into type T.
ReadAsUint64 reads an uint64 from r and stores the result into c with pointer type casting into type T.
ReadAsUint64Slice reads a slice of uint64 from r and stores the result into c with pointer type casting into type T.
ReadAsUint8 reads an uint8 from r and stores the result into c with pointer type casting into type T.
ReadAsUint8Slice reads a slice of uint8 from r and stores the result into c with pointer type casting into type T.
ReadUint16 reads a uint16 from r and stores the result into *c.
ReadUint16Slice reads a slice of uint16 from r and stores the result into c.
ReadUint32 reads a uint32 from r and stores the result into *c.
ReadUint32Slice reads a slice of uint32 from r and stores the result into c.
ReadUint64 reads a uint64 from r and stores the result into c.
ReadUint64Slice reads a slice of uint64 from r and stores the result into c.
ReadUint8 reads a byte from r and stores the result into *c.
ReadUint8Slice reads a slice of byte from r and stores the result into c.
RequireSerializerCorrect tests that: - input and output implement TestInterface - input.WriteTo(io.Writer) writes a number of bytes on the writer equal to the number of bytes generated by input.MarshalBinary() - input.WriteTo buffered bytes are equal to the bytes generated by input.MarshalBinary() - output.ReadFrom(io.Reader) reads a number of bytes on the reader equal to the number of bytes written using input.WriteTo(io.Writer) - applies require.Equalf between the original and reconstructed object for - all the above WriteTo, ReadFrom, MarhsalBinary and UnmarshalBinary do not return an error.
Write writes a slice of bytes to w.
WriteAsUint16 casts &T to an *uint16 and writes it to w.
WriteAsUint16Slice casts &[]T into *[]uint16 and writes it to w.
WriteAsUint32 casts &T to an *uint32 and writes it to w.
WriteAsUint32Slice casts &[]T into *[]uint32 and writes it to w.
WriteAsUint64 casts &T to an *uint64 and writes it to w.
WriteAsUint64Slice casts &[]T into *[]uint64 and writes it to w.
WriteAsUint8 casts &T to an *uint8 and writes it to w.
WriteAsUint8Slice casts &[]T into *[]uint8 and writes it to w.
WriteUint16 writes a uint16 c to w.
WriteUint16Slice writes a slice of uint16 c to w.
WriteUint32 writes a uint32 c into w.
WriteUint32Slice writes a slice of uint32 c into w.
WriteUint64 writes a uint64 c into w.
WriteUint64Slice writes a slice of uint64 into w.
WriteUint8 writes a byte c to w.
WriteUint8Slice writes a slice of bytes c to w.
# Structs
Buffer is a simple []byte-based buffer that complies to the Writer and Reader interfaces.