books

package
v3.0.0-alpha-29 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Book_TypeID = 0x8100cc88d7d4d47c

Book_TypeID is the unique identifier for the type Book.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type Book

type Book capnp.Struct

func NewBook

func NewBook(s *capnp.Segment) (Book, error)

func NewRootBook

func NewRootBook(s *capnp.Segment) (Book, error)

func ReadRootBook

func ReadRootBook(msg *capnp.Message) (Book, error)

func (Book) DecodeFromPtr

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

func (Book) EncodeAsPtr

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

func (Book) HasTitle

func (s Book) HasTitle() bool

func (Book) IsValid

func (s Book) IsValid() bool

func (Book) Message

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

func (Book) PageCount

func (s Book) PageCount() int32

func (Book) Segment

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

func (Book) SetPageCount

func (s Book) SetPageCount(v int32)

func (Book) SetTitle

func (s Book) SetTitle(v string) error

func (Book) String

func (s Book) String() string

func (Book) Title

func (s Book) Title() (string, error)

func (Book) TitleBytes

func (s Book) TitleBytes() ([]byte, error)

func (Book) ToPtr

func (s Book) ToPtr() capnp.Ptr

type Book_Future

type Book_Future struct{ *capnp.Future }

Book_Future is a wrapper for a Book promised by a client call.

func (Book_Future) Struct

func (f Book_Future) Struct() (Book, error)

type Book_List

type Book_List = capnp.StructList[Book]

Book_List is a list of Book.

func NewBook_List

func NewBook_List(s *capnp.Segment, sz int32) (Book_List, error)

NewBook creates a new list of Book.

Jump to

Keyboard shortcuts

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