Documentation
¶
Index ¶
- Constants
- func FromPreserves(v preserves.Value) preserves.Value
- func ReadEndByte(ir io.Reader) (ok bool, n int, err error)
- func ReadUvarint(r io.Reader) (l uint64, n int, err error)
- func ToPreserves(v preserves.Value) preserves.Value
- type Annotation
- func (a *Annotation) Cmp(y preserves.Value) int
- func (a *Annotation) Equal(y preserves.Value) bool
- func (a *Annotation) MarshalBinary() (data []byte, err error)
- func (a *Annotation) New() preserves.Value
- func (a *Annotation) ReadFrom(rd io.Reader) (n int64, err error)
- func (a *Annotation) WriteTo(w io.Writer) (n int64, err error)
- type BinaryParser
- type Boolean
- func (b *Boolean) Cmp(y preserves.Value) int
- func (b *Boolean) Equal(y preserves.Value) bool
- func (b *Boolean) MarshalBinary() (data []byte, err error)
- func (b *Boolean) New() preserves.Value
- func (b *Boolean) ReadFrom(ir io.Reader) (n int64, err error)
- func (b *Boolean) WriteTo(w io.Writer) (n int64, err error)
- type ByteLenReader
- type ByteString
- func (b *ByteString) Cmp(y preserves.Value) int
- func (b *ByteString) Equal(y preserves.Value) bool
- func (bs *ByteString) MarshalBinary() (data []byte, err error)
- func (bs *ByteString) New() preserves.Value
- func (bs *ByteString) ReadFrom(r io.Reader) (n int64, err error)
- func (bs *ByteString) WriteTo(w io.Writer) (n int64, err error)
- type Dictionary
- func (d *Dictionary) Cmp(y preserves.Value) int
- func (d *Dictionary) Equal(y preserves.Value) bool
- func (d *Dictionary) MarshalBinary() (data []byte, err error)
- func (d *Dictionary) New() preserves.Value
- func (d *Dictionary) ReadFrom(rd io.Reader) (n int64, err error)
- func (d *Dictionary) WriteTo(w io.Writer) (n int64, err error)
- type Double
- func (d *Double) Cmp(y preserves.Value) int
- func (d *Double) Equal(y preserves.Value) bool
- func (d *Double) MarshalBinary() (data []byte, err error)
- func (d *Double) New() preserves.Value
- func (d *Double) ReadFrom(r io.Reader) (n int64, err error)
- func (d *Double) WriteTo(w io.Writer) (n int64, err error)
- type Embedded
- func (e *Embedded) Cmp(y preserves.Value) int
- func (e *Embedded) Equal(y preserves.Value) bool
- func (e *Embedded) MarshalBinary() (data []byte, err error)
- func (e *Embedded) New() preserves.Value
- func (e *Embedded) ReadFrom(rd io.Reader) (n int64, err error)
- func (e *Embedded) WriteTo(w io.Writer) (n int64, err error)
- type Record
- func (r *Record) Cmp(y preserves.Value) int
- func (r *Record) Equal(y preserves.Value) bool
- func (r *Record) MarshalBinary() (data []byte, err error)
- func (r *Record) New() preserves.Value
- func (r *Record) ReadFrom(rd io.Reader) (n int64, err error)
- func (r *Record) WriteTo(w io.Writer) (n int64, err error)
- type Sequence
- func (s *Sequence) Cmp(y preserves.Value) int
- func (s *Sequence) Equal(y preserves.Value) bool
- func (s *Sequence) MarshalBinary() (data []byte, err error)
- func (s *Sequence) New() preserves.Value
- func (s *Sequence) ReadFrom(rd io.Reader) (n int64, err error)
- func (s *Sequence) WriteTo(w io.Writer) (n int64, err error)
- type Set
- type SignedInteger
- func (s *SignedInteger) Cmp(y preserves.Value) int
- func (s *SignedInteger) Equal(y preserves.Value) bool
- func (s *SignedInteger) MarshalBinary() (data []byte, err error)
- func (s *SignedInteger) New() preserves.Value
- func (s *SignedInteger) ReadFrom(r io.Reader) (n int64, err error)
- func (s *SignedInteger) WriteTo(w io.Writer) (n int64, err error)
- type String
- func (s *String) Cmp(y preserves.Value) int
- func (s *String) Equal(y preserves.Value) bool
- func (s *String) MarshalBinary() (data []byte, err error)
- func (s *String) New() preserves.Value
- func (s *String) ReadFrom(r io.Reader) (n int64, err error)
- func (s *String) WriteTo(w io.Writer) (n int64, err error)
- type Symbol
- func (s *Symbol) Cmp(y preserves.Value) int
- func (s *Symbol) Equal(y preserves.Value) bool
- func (s *Symbol) MarshalBinary() (data []byte, err error)
- func (s *Symbol) New() preserves.Value
- func (s *Symbol) ReadFrom(r io.Reader) (n int64, err error)
- func (s *Symbol) WriteTo(w io.Writer) (n int64, err error)
Constants ¶
View Source
const ( BooleanFalseByte = 0x80 BooleanTrueByte = 0x81 Reserved82Byte = 0x82 Reserved83Byte = 0x83 EndByte = 0x84 AnnotationByte = 0x85 EmbeddedByte = 0x86 DoubleByte = 0x87 // up to 0xAF SignedIntegerByte = 0xB0 StringByte = 0xB1 ByteStringByte = 0xB2 SymbolByte = 0xB3 RecordByte = 0xB4 SequenceByte = 0xB5 SetByte = 0xB6 DictionaryByte = 0xB7 ReservedB8Byte = 0xB8 ReservedB9Byte = 0xB9 ReservedBAByte = 0xBA ReservedBBByte = 0xBB ReservedBCByte = 0xBC ReservedBDByte = 0xBD ReservedBEByte = 0xBE ReservedBFByte = 0xBF )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Annotation ¶
type Annotation struct {
preserves.Annotation
}
func NewAnnotation ¶
func NewAnnotation(value, annotatedValue preserves.Value) *Annotation
func (*Annotation) MarshalBinary ¶
func (a *Annotation) MarshalBinary() (data []byte, err error)
func (*Annotation) New ¶
func (a *Annotation) New() preserves.Value
type BinaryParser ¶
type Boolean ¶
func (*Boolean) MarshalBinary ¶
type ByteLenReader ¶
type ByteLenReader struct { io.ByteReader // contains filtered or unexported fields }
func (*ByteLenReader) ReadByte ¶
func (b *ByteLenReader) ReadByte() (d byte, err error)
type ByteString ¶
type ByteString struct {
preserves.ByteString
}
func (*ByteString) MarshalBinary ¶
func (bs *ByteString) MarshalBinary() (data []byte, err error)
func (*ByteString) New ¶
func (bs *ByteString) New() preserves.Value
type Dictionary ¶
type Dictionary struct {
preserves.Dictionary
}
func NewDictionary ¶
func NewDictionary(pairs ...struct{ key, field preserves.Value }) *Dictionary
func (*Dictionary) MarshalBinary ¶
func (d *Dictionary) MarshalBinary() (data []byte, err error)
func (*Dictionary) New ¶
func (d *Dictionary) New() preserves.Value
type Double ¶
func (*Double) MarshalBinary ¶
type Record ¶
func (*Record) MarshalBinary ¶
type Set ¶
func (*Set) MarshalBinary ¶
type SignedInteger ¶
type SignedInteger struct {
preserves.SignedInteger
}
func (*SignedInteger) MarshalBinary ¶
func (s *SignedInteger) MarshalBinary() (data []byte, err error)
func (*SignedInteger) New ¶
func (s *SignedInteger) New() preserves.Value
type String ¶
func (*String) MarshalBinary ¶
type Symbol ¶
func (*Symbol) MarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.