pgetc

package
v0.0.0-...-0861148 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MicroSecFromUnixEpochToY2K = 946684800 * 1000000
	InftyMicroSecOffset        = 9223372036854775807
	NegInftyMicroSecOffset     = -9223372036854775808
)

timestamp

View Source
const BoolOID = 16
View Source
const OIDOID = 26
View Source
const RegconfigOID = 3734

Variables

View Source
var ErrEOF = errors.New("insufficient bytes left in src")
View Source
var ErrInfinity = errors.New("infinity is not a valid value")
View Source
var ErrInvalidSrcLength = errors.New("invalid valid length for type")
View Source
var ErrNull = errors.New("expected not null value")
View Source
var ErrNumFieldMismatch = errors.New("unexpected number of fields for composite type")
View Source
var ErrTooManyDims = errors.New("too many dims in array")
View Source
var ErrUnexpectedType = errors.New("unexpected type")
View Source
var ErrUnknownVersion = errors.New("unknown version")

Functions

This section is empty.

Types

type Bool

type Bool bool

func (Bool) WriteBinary

func (b Bool) WriteBinary(stream *Stream)

func (Bool) WriteType

func (b Bool) WriteType(stream *Stream)

func (Bool) WriteValue

func (b Bool) WriteValue(stream *Stream)

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

func NewIterator

func NewIterator(src []byte) *Iterator

func (*Iterator) Err

func (iter *Iterator) Err() error

func (*Iterator) Next

func (iter *Iterator) Next(n int) error

Next prepares the next n bytes for reading

func (*Iterator) Read

func (iter *Iterator) Read() []byte

func (*Iterator) ReadByte

func (iter *Iterator) ReadByte() (byte, error)

func (*Iterator) ReadUint16

func (iter *Iterator) ReadUint16() uint16

func (*Iterator) ReadUint32

func (iter *Iterator) ReadUint32() uint32

func (*Iterator) ReadUint64

func (iter *Iterator) ReadUint64() uint64

func (*Iterator) ReportError

func (iter *Iterator) ReportError(err error)

type OID

type OID uint32
const UnknownOID OID = 705

func (OID) WriteBinary

func (o OID) WriteBinary(stream *Stream)

func (OID) WriteType

func (o OID) WriteType(stream *Stream)

func (OID) WriteValue

func (o OID) WriteValue(stream *Stream)

type Regconfig

type Regconfig int32
const (
	Arabic     Regconfig = 13068
	Danish     Regconfig = 13070
	Dutch      Regconfig = 13072
	English    Regconfig = 13074
	Finnish    Regconfig = 13076
	French     Regconfig = 13078
	German     Regconfig = 13080
	Greek      Regconfig = 13082
	Hungarian  Regconfig = 13084
	Indonesian Regconfig = 13086
	Irish      Regconfig = 13088
	Italian    Regconfig = 13090
	Lithuanian Regconfig = 13092
	Nepali     Regconfig = 13094
	Norwegian  Regconfig = 13096
	Portuguese Regconfig = 13098
	Romanian   Regconfig = 13100
	Russian    Regconfig = 13102
	Spanish    Regconfig = 13104
	Swedish    Regconfig = 13106
	Tamil      Regconfig = 13108
	Turkish    Regconfig = 13110
)

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

func NewStream

func NewStream(buf []byte) *Stream

func (*Stream) Bytes

func (stream *Stream) Bytes() []byte

func (*Stream) Err

func (stream *Stream) Err() error

func (*Stream) Len

func (stream *Stream) Len() int

func (*Stream) ReportError

func (stream *Stream) ReportError(err error)

func (*Stream) Reset

func (stream *Stream) Reset()

func (*Stream) SetUint32

func (stream *Stream) SetUint32(sp int, v uint32)

func (*Stream) Write

func (stream *Stream) Write(p []byte) (int, error)

func (*Stream) WriteByte

func (stream *Stream) WriteByte(b byte) error

func (*Stream) WriteInt32

func (stream *Stream) WriteInt32(v int32)

func (*Stream) WriteUint16

func (stream *Stream) WriteUint16(v uint16)

func (*Stream) WriteUint32

func (stream *Stream) WriteUint32(v uint32)

func (*Stream) WriteUint64

func (stream *Stream) WriteUint64(v uint64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL