# Functions

Read256 will read 32 bytes from r and return them as a slice of bytes.
Read512 will read 64 bytes from r and return them as a slice of bytes.
ReadBLS will read a compressed bls signature (33 bytes) from r and return it as a slice of bytes.
ReadBLSPKey will read a compressed bls public key (96 bytes) from r and return it as a slice of bytes.
ReadBool will read a single byte from r, turn it into a bool and return it.
ReadString reads the data with ReadVarBytes and returns it as a string by simple type conversion.
ReadUint16LE will read two bytes and convert them to a uint16 assuming little-endian byte order.
ReadUint32LE will read four bytes and convert them to a uint32 assuming little-endian byte order.
ReadUint64LE will read eight bytes and convert them to a uint64 assuming little-endian byte order.
ReadUint8 will read a single byte into v.
ReadVarBytes will read a CompactSize int denoting the length, then proceeds to read that amount of bytes from r into b.
ReadVarBytesUint32LE will read a CompactSize int denoting the length, then proceeds to read that amount of bytes from r into b.
ReadVarInt reads the discriminator byte of a CompactSize int, and then deserializes the number accordingly.
VarIntEncodeSize returns the number of bytes needed to serialize a CompactSize int of size v.
Write256 will check the length of b and then write to w.
Write512 will check the length of b and then write to w.
WriteBLS will write a compressed bls signature (33 bytes) to w.
WriteBLSPKey will write a compressed bls public key (96 bytes) to w.
WriteBool will write a boolean value as a single byte into w.
WriteString will write string s as a slice of bytes through WriteVarBytes.
WriteUint16LE will write two bytes in little-endian byte order.
WriteUint32LE will write four bytes in little-endian byte order.
WriteUint64LE will write eight bytes in little-endian byte order.
WriteUint8 will write a single byte.
WriteVarBytes will serialize a CompactSize int denoting the length, then proceeds to write b into w.
WriteVarBytesUint32 will serialize a CompactSize int denoting the length, then proceeds to write b into w.
WriteVarInt writes a CompactSize integer with a number of bytes depending on it's value.