Versions in this module Expand all Collapse all v1 v1.0.0 Aug 10, 2026 Changes in this version + const MaxLeb128Size + type BufferSink struct + func NewBufferSink(data []byte) *BufferSink + func (b *BufferSink) Bytes() []byte + func (b *BufferSink) Cursor() int + func (b *BufferSink) PutInt32LE(v int32) bool + func (b *BufferSink) PutRange(src []byte) bool + func (b *BufferSink) PutSleb128(value int32) bool + func (b *BufferSink) PutUint16LE(v uint16) bool + func (b *BufferSink) PutUint32LE(v uint32) bool + func (b *BufferSink) PutUint64LE(v uint64) bool + func (b *BufferSink) PutUint8(v uint8) bool + func (b *BufferSink) PutUleb128(value uint32) bool + func (b *BufferSink) Remaining() int + type BufferSource struct + func NewBufferSource(data []byte) *BufferSource + func NewBufferSourceFromOffset(data []byte, offset int) *BufferSource + func (b *BufferSource) Bytes() []byte + func (b *BufferSource) CheckNextBytes(target []byte) bool + func (b *BufferSource) ConsumeBytes(target []byte) bool + func (b *BufferSource) Cursor() int + func (b *BufferSource) GetInt32LE() (int32, bool) + func (b *BufferSource) GetRegion(count int) ([]byte, bool) + func (b *BufferSource) GetSleb128() (int32, bool) + func (b *BufferSource) GetUint16LE() (uint16, bool) + func (b *BufferSource) GetUint32LE() (uint32, bool) + func (b *BufferSource) GetUint64LE() (uint64, bool) + func (b *BufferSource) GetUint8() (uint8, bool) + func (b *BufferSource) GetUleb128() (uint32, bool) + func (b *BufferSource) RegionFrom(start int) []byte + func (b *BufferSource) Remaining() int + func (b *BufferSource) Skip(n int) bool + func (b *BufferSource) SkipLeb128() bool + type Sink interface + PutInt32LE func(int32) bool + PutRange func([]byte) bool + PutSleb128 func(int32) bool + PutUint16LE func(uint16) bool + PutUint32LE func(uint32) bool + PutUint64LE func(uint64) bool + PutUint8 func(uint8) bool + PutUleb128 func(uint32) bool + type WriterSink struct + func NewWriterSink(w io.Writer) *WriterSink + func (s *WriterSink) Cursor() int64 + func (s *WriterSink) Err() error + func (s *WriterSink) PutInt32LE(v int32) bool + func (s *WriterSink) PutRange(data []byte) bool + func (s *WriterSink) PutSleb128(value int32) bool + func (s *WriterSink) PutUint16LE(v uint16) bool + func (s *WriterSink) PutUint32LE(v uint32) bool + func (s *WriterSink) PutUint64LE(v uint64) bool + func (s *WriterSink) PutUint8(v uint8) bool + func (s *WriterSink) PutUleb128(value uint32) bool