package
0.0.0-20241001140320-1cfc79ecf30e
Repository: https://github.com/nix-community/go-nix.git
Documentation: pkg.go.dev
# Functions
NewBytesReader constructs a Reader of a bytes packet.
No description provided by the author
ReadBool consumes a boolean in nix wire format.
ReadBytes parses the size field, and returns a ReadCloser to its contents.
ReadBytesFull reads a byte packet, and will return its content, or an error.
ReadString reads a bytes packet and converts it to string.
ReadUint64 consumes exactly 8 bytes and returns a uint64.
WriteBool writes a boolean in Nix wire format.
WriteBytes writes a bytes packet.
WriteString writes a bytes packet.
WriteUint64 writes an uint64 in Nix wire format.
# Structs
BytesReader implements reading from bytes fields.
BytesWriter implements writing bytes fields.