nibble

package
v0.0.0-...-03afc55 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(size int) []byte

New creates a new nibble array that can store at least the requested number of values.

Types

type Array

type Array []byte

Array is an array of 4 bit values.

func (Array) Get

func (a Array) Get(idx int) byte

Get returns the value at the index.

func (Array) Set

func (a Array) Set(idx int, val byte)

Set sets the value a the index.

Jump to

Keyboard shortcuts

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