common_date

package module
v0.0.0-...-7d73fae Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MPL-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const Date_TypeID = 0x97e6feac0322118d

Date_TypeID is the unique identifier for the type Date.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type Date

type Date capnp.Struct

func NewDate

func NewDate(s *capnp.Segment) (Date, error)

func NewRootDate

func NewRootDate(s *capnp.Segment) (Date, error)

func ReadRootDate

func ReadRootDate(msg *capnp.Message) (Date, error)

func (Date) Day

func (s Date) Day() uint8

func (Date) DecodeFromPtr

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

func (Date) EncodeAsPtr

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

func (Date) IsValid

func (s Date) IsValid() bool

func (Date) Message

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

func (Date) Month

func (s Date) Month() uint8

func (Date) Segment

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

func (Date) SetDay

func (s Date) SetDay(v uint8)

func (Date) SetMonth

func (s Date) SetMonth(v uint8)

func (Date) SetYear

func (s Date) SetYear(v int16)

func (Date) String

func (s Date) String() string

func (Date) ToPtr

func (s Date) ToPtr() capnp.Ptr

func (Date) Year

func (s Date) Year() int16

type Date_Future

type Date_Future struct{ *capnp.Future }

Date_Future is a wrapper for a Date promised by a client call.

func (Date_Future) Struct

func (f Date_Future) Struct() (Date, error)

type Date_List

type Date_List = capnp.StructList[Date]

Date_List is a list of Date.

func NewDate_List

func NewDate_List(s *capnp.Segment, sz int32) (Date_List, error)

NewDate creates a new list of Date.

Jump to

Keyboard shortcuts

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