package
0.108.1
Repository: https://github.com/nspcc-dev/neo-go.git
Documentation: pkg.go.dev

# Functions

GetVarSize returns the number of bytes in a serialized variable.
MakeDirForFile creates a directory provided in the filePath.
NewBinReaderFromBuf makes a BinReader from a byte buffer.
NewBinReaderFromIO makes a BinReader from io.Reader.
NewBinWriterFromIO makes a BinWriter from io.Writer.
NewBufBinWriter makes a BufBinWriter with an empty byte buffer.
PutVarUint puts a val in the varint form to the pre-allocated buffer.

# Constants

MaxArraySize is the maximum size of an array which can be decoded.

# Variables

ErrDrained is returned on an attempt to use an already drained write buffer.

# Structs

BinReader is a convenient wrapper around an io.Reader and err object.
BinWriter is a convenient wrapper around an io.Writer and err object.
BufBinWriter is an additional layer on top of BinWriter that automatically creates a buffer to write into that you can get after all writes via Bytes().

# Interfaces

Serializable defines the binary encoding/decoding interface.