utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package containing helper structures and function

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

Buffer is a simple wrapper around a []byte to facilitate efficient marshaling of lattigo's objects

func NewBuffer

func NewBuffer(s []byte) *Buffer

NewBuffer creates a new buffer from the provided backing slice

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

func (*Buffer) ReadUint8

func (b *Buffer) ReadUint8() byte

func (*Buffer) ReadUint64

func (b *Buffer) ReadUint64() uint64

func (*Buffer) ReadUint64Slice

func (b *Buffer) ReadUint64Slice(rec []uint64)

func (*Buffer) WriteUint8

func (b *Buffer) WriteUint8(c byte)

func (*Buffer) WriteUint64

func (b *Buffer) WriteUint64(v uint64)

func (*Buffer) WriteUint64Slice

func (b *Buffer) WriteUint64Slice(s []uint64)

Jump to

Keyboard shortcuts

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