Documentation
¶
Overview ¶
Package basic handles en-/decoding of basic types to 9p wire format.
Index ¶
- func BytesDecode(r io.Reader) ([]byte, int64, error)
- func BytesEncode(w io.Writer, b []byte) (int64, error)
- func StringDecode(r io.Reader) (string, int64, error)
- func StringEncode(w io.Writer, s string) (int64, error)
- func Uint16Decode(r io.Reader) (uint16, int64, error)
- func Uint16Encode(w io.Writer, x uint16) (int64, error)
- func Uint32Decode(r io.Reader) (uint32, int64, error)
- func Uint32Encode(w io.Writer, x uint32) (int64, error)
- func Uint64Decode(r io.Reader) (uint64, int64, error)
- func Uint64Encode(w io.Writer, x uint64) (int64, error)
- func Uint8Decode(r io.Reader) (uint8, int64, error)
- func Uint8Encode(w io.Writer, x uint8) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesDecode ¶
BytesDecode reads a variable number of bytes into a byte slice.
Returns a byte slice, the count of read bytes and a possible error.
func BytesEncode ¶
BytesEncode writes a byte slice.
Returns the count of written bytes and a possible error.
func StringDecode ¶
StringDecode reads a string.
Returns a string, the count of read bytes and a possible error.
func StringEncode ¶
StringEncode writes a string.
Returns the count of written bytes and a possible error.
func Uint16Decode ¶
Uint16Decode reads a 16 bit value from an io.Reader.
Returns the decoded uint16 value, the count of read bytes and a possible error.
func Uint16Encode ¶
Uint16Encode writes a uint16 value.
Returns the count of written bytes and a possible error.
func Uint32Decode ¶
Uint32Decode reads a 32 bit value from an io.Reader.
Returns the decoded uint32 value, the count of read bytes and a possible error.
func Uint32Encode ¶
Uint32Encode writes a uint32 value.
Returns the count of written bytes and a possible error.
func Uint64Decode ¶
Uint64Decode reads a 64 bit value from an io.Reader.
Returns the decoded uint64 value, the count of read bytes and a possible error.
func Uint64Encode ¶
Uint64Encode writes a uint64 value.
Returns the count of written bytes and a possible error.
func Uint8Decode ¶
Uint8Decode reads a single byte.
Returns the decoded byte, the count of read bytes and a possible error.
Types ¶
This section is empty.