noise: Index | Files

package payload

import ""


Package Files

reader.go writer.go

type Reader Uses

type Reader struct {
    // contains filtered or unexported fields

func NewReader Uses

func NewReader(payload []byte) Reader

func (Reader) Len Uses

func (r Reader) Len() int

Len returns the number of bytes that have not yet been read so far.

func (Reader) Read Uses

func (r Reader) Read(b []byte) (n int, err error)

func (Reader) ReadByte Uses

func (r Reader) ReadByte() (byte, error)

func (Reader) ReadBytes Uses

func (r Reader) ReadBytes() ([]byte, error)

func (Reader) ReadString Uses

func (r Reader) ReadString() (string, error)

func (Reader) ReadUint16 Uses

func (r Reader) ReadUint16() (uint16, error)

func (Reader) ReadUint32 Uses

func (r Reader) ReadUint32() (uint32, error)

func (Reader) ReadUint64 Uses

func (r Reader) ReadUint64() (uint64, error)

type Writer Uses

type Writer struct {
    // contains filtered or unexported fields

func NewWriter Uses

func NewWriter(buf []byte) Writer

func (Writer) Bytes Uses

func (b Writer) Bytes() []byte

func (Writer) Len Uses

func (b Writer) Len() int

Len returns the number of bytes written so far.

func (Writer) Write Uses

func (b Writer) Write(buf []byte) (n int, err error)

func (Writer) WriteByte Uses

func (b Writer) WriteByte(x byte) Writer

func (Writer) WriteBytes Uses

func (b Writer) WriteBytes(buf []byte) Writer

func (Writer) WriteString Uses

func (b Writer) WriteString(x string) Writer

func (Writer) WriteUint16 Uses

func (b Writer) WriteUint16(x uint16) Writer

func (Writer) WriteUint32 Uses

func (b Writer) WriteUint32(x uint32) Writer

func (Writer) WriteUint64 Uses

func (b Writer) WriteUint64(x uint64) Writer

Package payload imports 4 packages (graph) and is imported by 5 packages. Updated 2019-02-19. Refresh now. Tools for package owners.