Documentation ¶
Index ¶
- Constants
- Variables
- func BytesToUint16(buf []byte) uint16
- func BytesToUint24(buf []byte) uint32
- func BytesToUint32(buf []byte) uint32
- func BytesToUint64(buf []byte) uint64
- func BytesToUint8(buf []byte) uint8
- func MustReadUint16(r io.Reader) (v uint16)
- func MustReadUint24(r io.Reader) (v uint32)
- func MustReadUint32(r io.Reader) (v uint32)
- func MustReadUint64(r io.Reader) (v uint64)
- func MustReadUint8(r io.Reader) (v uint8)
- func ReadByte2(r io.Reader) (a, b byte, err error)
- func ReadByte3(r io.Reader) (a, b, c byte, err error)
- func ReadByte4(r io.Reader) (a, b, c, d byte, err error)
- func ReadByteAndUint16(r io.Reader) (a byte, v uint16, err error)
- func ReadUint16(r io.Reader) (v uint16, err error)
- func ReadUint24(r io.Reader) (v uint32, err error)
- func ReadUint32(r io.Reader) (v uint32, err error)
- func ReadUint64(r io.Reader) (v uint64, err error)
- func ReadUint8(r io.Reader) (v uint8, err error)
- func Uint16ToBytes(v uint16, buf []byte) []byte
- func Uint24ToBytes(v uint32, buf []byte) []byte
- func Uint24ToInt24(v uint32) int32
- func Uint32ToBytes(v uint32, buf []byte) []byte
- func Uint64ToBytes(v uint64, buf []byte) []byte
- func Uint8ToBytes(v uint8, buf []byte) []byte
- type Gob
- type Gop
- type LabelMeta
Constants ¶
View Source
const MagicHeader = 0xbd57a496
View Source
const (
NEG1 = ^(uint64)(0)
)
Variables ¶
View Source
var UnexceptMagicHeader = errors.New("Unexcept magic header")
Functions ¶
func BytesToUint16 ¶
func BytesToUint24 ¶
func BytesToUint32 ¶
func BytesToUint64 ¶
func BytesToUint8 ¶
func MustReadUint16 ¶
func MustReadUint24 ¶
func MustReadUint32 ¶
func MustReadUint64 ¶
func MustReadUint8 ¶
func Uint16ToBytes ¶
func Uint24ToBytes ¶
func Uint24ToInt24 ¶
func Uint32ToBytes ¶
func Uint64ToBytes ¶
func Uint8ToBytes ¶
Types ¶
type Gob ¶
type Gob struct {
// contains filtered or unexported fields
}
The type of a program
func (*Gob) ParseMetadata ¶
Click to show internal directories.
Click to hide internal directories.