base64data

package
v0.0.0-...-c5df73b Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2016 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64Data

type Base64Data []byte

Base64Data extends the JSON marshal/unmarshal interface to support Base64 data.

func (Base64Data) ConvToString

func (b Base64Data) ConvToString() string

func (*Base64Data) CopyIn

func (b *Base64Data) CopyIn(text []byte)

func (Base64Data) Debug_dec

func (b Base64Data) Debug_dec(db bool, name string)

func (Base64Data) Debug_hex

func (b Base64Data) Debug_hex(db bool, name string)

func (Base64Data) Int32Array

func (b Base64Data) Int32Array() []int32

int32Array is an hack used for some debug output to approximate what the JavaScript implementation will print/show when running it in a console.

func (Base64Data) Int64Array

func (b Base64Data) Int64Array() []int64

func (Base64Data) IsEmpty

func (b Base64Data) IsEmpty() bool

func (Base64Data) MarshalText

func (b Base64Data) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaller - convert to Base64 on output.

func (Base64Data) Uint32Array

func (b Base64Data) Uint32Array() []uint32

Implement an output conversion for debuging that matches what SJCL shows on the SJCL demo page.

func (*Base64Data) UnmarshalText

func (b *Base64Data) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaller - convert from Base64 to byte.

Jump to

Keyboard shortcuts

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