ternary_mux

package
v0.0.0-...-5dd4785 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0, BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCTernaryDemultiplexer

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

func NewBCTernaryDemultiplexer

func NewBCTernaryDemultiplexer(bcTrits BCTrits) *BCTernaryDemultiplexer

func (*BCTernaryDemultiplexer) Get

func (this *BCTernaryDemultiplexer) Get(index int) Trits

type BCTernaryMultiplexer

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

func NewBCTernaryMultiplexer

func NewBCTernaryMultiplexer() *BCTernaryMultiplexer

func (*BCTernaryMultiplexer) Add

func (this *BCTernaryMultiplexer) Add(trits Trits) int

func (*BCTernaryMultiplexer) Extract

func (this *BCTernaryMultiplexer) Extract() (BCTrits, error)

func (*BCTernaryMultiplexer) Get

func (this *BCTernaryMultiplexer) Get(index int) Trits

type BCTrit

type BCTrit struct {
	Lo uint
	Hi uint
}

a Binary Coded Trit encodes a Trit in 2 bits with -1 => 00, 0 => 01 and 1 => 10

type BCTrits

type BCTrits struct {
	Lo []uint
	Hi []uint
}

a Binary Coded Trytes consists out of many Binary Coded Trits

Jump to

Keyboard shortcuts

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