wag: github.com/tsavola/wag/internal/code Index | Files

package code

import "github.com/tsavola/wag/internal/code"

Index

Package Files

codebuffer.go

type Buf Uses

type Buf struct {
    Buffer
    Addr int32
}

Buf is an optimized Buffer. The cached length (Addr) avoids interface function calls.

func (*Buf) Extend Uses

func (buf *Buf) Extend(n int) (b []byte)

func (*Buf) PutByte Uses

func (buf *Buf) PutByte(x byte)

func (*Buf) PutUint32 Uses

func (buf *Buf) PutUint32(x uint32)

type Buffer Uses

type Buffer interface {
    Bytes() []byte
    Extend(n int) []byte
    PutByte(byte)
    PutUint32(uint32) // Little-endian byte order.
}

Package code is imported by 6 packages. Updated 2019-02-03. Refresh now. Tools for package owners.