triescnp

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Entry_TypeID = 0x9fb6af56de709433

Entry_TypeID is the unique identifier for the type Entry.

View Source
const Index_TypeID = 0xba9cf241dfa2755b

Index_TypeID is the unique identifier for the type Index.

View Source
const Node_TypeID = 0xd7716cf897996ddc

Node_TypeID is the unique identifier for the type Node.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type Entry

type Entry capnp.Struct

func NewEntry

func NewEntry(s *capnp.Segment) (Entry, error)

func NewRootEntry

func NewRootEntry(s *capnp.Segment) (Entry, error)

func ReadRootEntry

func ReadRootEntry(msg *capnp.Message) (Entry, error)

func (Entry) DecodeFromPtr

func (Entry) DecodeFromPtr(p capnp.Ptr) Entry

func (Entry) EncodeAsPtr

func (s Entry) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Entry) HasIndex added in v0.0.2

func (s Entry) HasIndex() bool

func (Entry) HasKey

func (s Entry) HasKey() bool

func (Entry) HasValue

func (s Entry) HasValue() bool

func (Entry) HasVnode added in v0.0.2

func (s Entry) HasVnode() bool

func (Entry) Index added in v0.0.2

func (s Entry) Index() (Index, error)

func (Entry) IsValid

func (s Entry) IsValid() bool

func (Entry) Key

func (s Entry) Key() ([]byte, error)

func (Entry) Message

func (s Entry) Message() *capnp.Message

func (Entry) NewIndex added in v0.0.2

func (s Entry) NewIndex() (Index, error)

NewIndex sets the index field to a newly allocated Index struct, preferring placement in s's segment.

func (Entry) NewVnode added in v0.0.2

func (s Entry) NewVnode() (Node, error)

NewVnode sets the vnode field to a newly allocated Node struct, preferring placement in s's segment.

func (Entry) Segment

func (s Entry) Segment() *capnp.Segment

func (Entry) SetIndex added in v0.0.2

func (s Entry) SetIndex(v Index) error

func (Entry) SetKey

func (s Entry) SetKey(v []byte) error

func (Entry) SetValue

func (s Entry) SetValue(v []byte) error

func (Entry) SetVnode added in v0.0.2

func (s Entry) SetVnode(v Node) error

func (Entry) String

func (s Entry) String() string

func (Entry) ToPtr

func (s Entry) ToPtr() capnp.Ptr

func (Entry) Value

func (s Entry) Value() ([]byte, error)

func (Entry) Vnode added in v0.0.2

func (s Entry) Vnode() (Node, error)

func (Entry) Which added in v0.0.2

func (s Entry) Which() Entry_Which

type Entry_Future

type Entry_Future struct{ *capnp.Future }

Entry_Future is a wrapper for a Entry promised by a client call.

func (Entry_Future) Index added in v0.0.2

func (p Entry_Future) Index() Index_Future

func (Entry_Future) Struct

func (f Entry_Future) Struct() (Entry, error)

func (Entry_Future) Vnode added in v0.0.2

func (p Entry_Future) Vnode() Node_Future

type Entry_List

type Entry_List = capnp.StructList[Entry]

Entry_List is a list of Entry.

func NewEntry_List

func NewEntry_List(s *capnp.Segment, sz int32) (Entry_List, error)

NewEntry creates a new list of Entry.

type Entry_Which added in v0.0.2

type Entry_Which uint16
const (
	Entry_Which_value Entry_Which = 0
	Entry_Which_index Entry_Which = 1
	Entry_Which_vnode Entry_Which = 2
)

func (Entry_Which) String added in v0.0.2

func (w Entry_Which) String() string

type Index

type Index capnp.Struct

func NewIndex

func NewIndex(s *capnp.Segment) (Index, error)

func NewRootIndex

func NewRootIndex(s *capnp.Segment) (Index, error)

func ReadRootIndex

func ReadRootIndex(msg *capnp.Message) (Index, error)

func (Index) Count

func (s Index) Count() uint64

func (Index) DecodeFromPtr

func (Index) DecodeFromPtr(p capnp.Ptr) Index

func (Index) EncodeAsPtr

func (s Index) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Index) HasRef

func (s Index) HasRef() bool

func (Index) IsValid

func (s Index) IsValid() bool

func (Index) Message

func (s Index) Message() *capnp.Message

func (Index) Ref

func (s Index) Ref() ([]byte, error)

func (Index) Segment

func (s Index) Segment() *capnp.Segment

func (Index) SetCount

func (s Index) SetCount(v uint64)

func (Index) SetRef

func (s Index) SetRef(v []byte) error

func (Index) String

func (s Index) String() string

func (Index) ToPtr

func (s Index) ToPtr() capnp.Ptr

type Index_Future

type Index_Future struct{ *capnp.Future }

Index_Future is a wrapper for a Index promised by a client call.

func (Index_Future) Struct

func (f Index_Future) Struct() (Index, error)

type Index_List

type Index_List = capnp.StructList[Index]

Index_List is a list of Index.

func NewIndex_List

func NewIndex_List(s *capnp.Segment, sz int32) (Index_List, error)

NewIndex creates a new list of Index.

type Node

type Node capnp.Struct

func NewNode

func NewNode(s *capnp.Segment) (Node, error)

func NewRootNode

func NewRootNode(s *capnp.Segment) (Node, error)

func ReadRootNode

func ReadRootNode(msg *capnp.Message) (Node, error)

func (Node) DecodeFromPtr

func (Node) DecodeFromPtr(p capnp.Ptr) Node

func (Node) EncodeAsPtr

func (s Node) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Node) Entries

func (s Node) Entries() (Entry_List, error)

func (Node) HasEntries

func (s Node) HasEntries() bool

func (Node) IsValid

func (s Node) IsValid() bool

func (Node) Message

func (s Node) Message() *capnp.Message

func (Node) NewEntries

func (s Node) NewEntries(n int32) (Entry_List, error)

NewEntries sets the entries field to a newly allocated Entry_List, preferring placement in s's segment.

func (Node) Segment

func (s Node) Segment() *capnp.Segment

func (Node) SetEntries

func (s Node) SetEntries(v Entry_List) error

func (Node) String

func (s Node) String() string

func (Node) ToPtr

func (s Node) ToPtr() capnp.Ptr

type Node_Future

type Node_Future struct{ *capnp.Future }

Node_Future is a wrapper for a Node promised by a client call.

func (Node_Future) Struct

func (f Node_Future) Struct() (Node, error)

type Node_List

type Node_List = capnp.StructList[Node]

Node_List is a list of Node.

func NewNode_List

func NewNode_List(s *capnp.Segment, sz int32) (Node_List, error)

NewNode creates a new list of Node.

Jump to

Keyboard shortcuts

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