Documentation ¶
Overview ¶
Package buf is a library for simplifying the handling of byte slices and has a special secure buffer that is protected from snooping by other processes
Index ¶
- type Byte
- func (r *Byte) Bytes() (out *[]byte)
- func (r *Byte) Copy(in *[]byte) core.Buffer
- func (r *Byte) Free() core.Buffer
- func (r *Byte) Freeze() (out *[]byte)
- func (r *Byte) GetCoding() (out *string)
- func (r *Byte) GetElem(index int) (out interface{})
- func (r *Byte) IsEqual(p *[]byte) (is bool)
- func (r *Byte) Len() int
- func (r *Byte) ListCodings() (out *[]string)
- func (r *Byte) NewIf() *Byte
- func (r *Byte) OK() bool
- func (r *Byte) SetCoding(in string) core.Coder
- func (r *Byte) SetElem(index int, in interface{}) core.Array
- func (r *Byte) SetStatus(s string) core.Status
- func (r *Byte) SetStatusIf(err error) core.Status
- func (r *Byte) String() (s string)
- func (r *Byte) Thaw(in *[]byte) core.Streamer
- func (r *Byte) UnsetStatus() core.Status
- func (r *Byte) Zero() core.Buffer
- type Secure
- func (r *Secure) Bytes() (out *[]byte)
- func (r *Secure) Copy(in *[]byte) core.Buffer
- func (r *Secure) Error() string
- func (r *Secure) Free() core.Buffer
- func (r *Secure) Freeze() (out *[]byte)
- func (r *Secure) GetCoding() (out *string)
- func (r *Secure) GetElem(index int) (out interface{})
- func (r *Secure) IsEqual(p *[]byte) (is bool)
- func (r *Secure) Len() (length int)
- func (r *Secure) ListCodings() (out *[]string)
- func (r *Secure) NewIf() *Secure
- func (r *Secure) OK() bool
- func (r *Secure) Rand(length int) *Secure
- func (r *Secure) SetCoding(in string) core.Coder
- func (r *Secure) SetElem(index int, in interface{}) core.Array
- func (r *Secure) SetStatus(s string) core.Status
- func (r *Secure) SetStatusIf(err error) core.Status
- func (r *Secure) String() (s string)
- func (r *Secure) Thaw(in *[]byte) core.Streamer
- func (r *Secure) UnsetStatus() core.Status
- func (r *Secure) Zero() core.Buffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Byte ¶
Byte is a simple byte slice
func (*Byte) IsEqual ¶
IsEqual returns true if a serialized public key matches this one, also in format (compressed is preferred in a distributed ledger due to size)
type Secure ¶
type Secure struct { Val *memguard.LockedBuffer core.State Coding string }
Secure is a memguard LockedBuffer
func (*Secure) IsEqual ¶
IsEqual returns true if a serialized public key matches this one, also in format (compressed is preferred in a distributed ledger due to size).
func (*Secure) ListCodings ¶
ListCodings returns the set of codings available
func (*Secure) String ¶
String implements the stringer, uses coding to determine how the string is contstructed