gotfscnp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Attr_TypeID = 0x84c0f2afeea48fc8

Attr_TypeID is the unique identifier for the type Attr.

View Source
const Info_TypeID = 0xe8c4345c559d6872

Info_TypeID is the unique identifier for the type Info.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type Attr

type Attr capnp.Struct

func NewAttr

func NewAttr(s *capnp.Segment) (Attr, error)

func NewRootAttr

func NewRootAttr(s *capnp.Segment) (Attr, error)

func ReadRootAttr

func ReadRootAttr(msg *capnp.Message) (Attr, error)

func (Attr) DecodeFromPtr

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

func (Attr) EncodeAsPtr

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

func (Attr) HasKey

func (s Attr) HasKey() bool

func (Attr) HasValue

func (s Attr) HasValue() bool

func (Attr) IsValid

func (s Attr) IsValid() bool

func (Attr) Key

func (s Attr) Key() (string, error)

func (Attr) KeyBytes

func (s Attr) KeyBytes() ([]byte, error)

func (Attr) Message

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

func (Attr) Segment

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

func (Attr) SetKey

func (s Attr) SetKey(v string) error

func (Attr) SetValue

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

func (Attr) String

func (s Attr) String() string

func (Attr) ToPtr

func (s Attr) ToPtr() capnp.Ptr

func (Attr) Value

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

type Attr_Future

type Attr_Future struct{ *capnp.Future }

Attr_Future is a wrapper for a Attr promised by a client call.

func (Attr_Future) Struct

func (f Attr_Future) Struct() (Attr, error)

type Attr_List

type Attr_List = capnp.StructList[Attr]

Attr_List is a list of Attr.

func NewAttr_List

func NewAttr_List(s *capnp.Segment, sz int32) (Attr_List, error)

NewAttr creates a new list of Attr.

type Info

type Info capnp.Struct

func NewInfo

func NewInfo(s *capnp.Segment) (Info, error)

func NewRootInfo

func NewRootInfo(s *capnp.Segment) (Info, error)

func ReadRootInfo

func ReadRootInfo(msg *capnp.Message) (Info, error)

func (Info) Attrs

func (s Info) Attrs() (Attr_List, error)

func (Info) DecodeFromPtr

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

func (Info) EncodeAsPtr

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

func (Info) HasAttrs

func (s Info) HasAttrs() bool

func (Info) IsValid

func (s Info) IsValid() bool

func (Info) Message

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

func (Info) Mode

func (s Info) Mode() uint32

func (Info) NewAttrs

func (s Info) NewAttrs(n int32) (Attr_List, error)

NewAttrs sets the attrs field to a newly allocated Attr_List, preferring placement in s's segment.

func (Info) Segment

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

func (Info) SetAttrs

func (s Info) SetAttrs(v Attr_List) error

func (Info) SetMode

func (s Info) SetMode(v uint32)

func (Info) String

func (s Info) String() string

func (Info) ToPtr

func (s Info) ToPtr() capnp.Ptr

type Info_Future

type Info_Future struct{ *capnp.Future }

Info_Future is a wrapper for a Info promised by a client call.

func (Info_Future) Struct

func (f Info_Future) Struct() (Info, error)

type Info_List

type Info_List = capnp.StructList[Info]

Info_List is a list of Info.

func NewInfo_List

func NewInfo_List(s *capnp.Segment, sz int32) (Info_List, error)

NewInfo creates a new list of Info.

Jump to

Keyboard shortcuts

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