Documentation ¶
Index ¶
- func ReadByte(r io.Reader) (byte, error)
- func ReadBytes(r io.Reader) ([]byte, error)
- func ReadFloat32(r io.Reader) (float32, error)
- func ReadFloat64(r io.Reader) (float64, error)
- func ReadInt32(r io.Reader) (int32, error)
- func ReadInt64(r io.Reader) (int64, error)
- func ReadString(r io.Reader) (string, error)
- func ReadTimeMsecs(r io.Reader) (t time.Time, err error)
- func ReadUint32(r io.Reader) (uint32, error)
- func ReadUint64(r io.Reader) (uint64, error)
- func UvariantSize(x uint64) int
- func VariantSize(x int64) int
- func WriteByte(w io.Writer, c byte) error
- func WriteBytes(w io.Writer, s []byte) error
- func WriteFloat32(w io.Writer, v float32) error
- func WriteFloat64(w io.Writer, v float64) error
- func WriteInt32(w io.Writer, x int32) error
- func WriteInt64(w io.Writer, x int64) error
- func WriteString(w io.Writer, s string) error
- func WriteTimeMsecs(w io.Writer, t time.Time) error
- func WriteUint32(w io.Writer, x uint32) error
- func WriteUint64(w io.Writer, x uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadUint32 ¶
ReadUint32 read an unsigned varint and make sure it is in the range of uint32
func UvariantSize ¶
UvariantSize caculatre bytes length of an unsigned varint
func VariantSize ¶
VariantSize caculatre bytes length of an signed varint
func WriteUint32 ¶
WriteUint32 write an unsigned varint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.