mime

package
v0.0.0-...-e2e80d8 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MimeTypeInfo_TypeID = 0x9f7f2421ef0a960b

MimeTypeInfo_TypeID is the unique identifier for the type MimeTypeInfo.

Variables

View Source
var (
	MimeTypeInfoTable = MimeTypeInfo_List(capnp.MustUnmarshalRoot(x_9dc702ea30180791[0:55568]).List())
)

Constants defined in mime.capnp.

Functions

This section is empty.

Types

type MimeTypeInfo

type MimeTypeInfo capnp.Struct

func NewMimeTypeInfo

func NewMimeTypeInfo(s *capnp.Segment) (MimeTypeInfo, error)

func NewRootMimeTypeInfo

func NewRootMimeTypeInfo(s *capnp.Segment) (MimeTypeInfo, error)

func ReadRootMimeTypeInfo

func ReadRootMimeTypeInfo(msg *capnp.Message) (MimeTypeInfo, error)

func (MimeTypeInfo) DecodeFromPtr

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

func (MimeTypeInfo) EncodeAsPtr

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

func (MimeTypeInfo) Extensions

func (s MimeTypeInfo) Extensions() (capnp.TextList, error)

func (MimeTypeInfo) HasExtensions

func (s MimeTypeInfo) HasExtensions() bool

func (MimeTypeInfo) HasName

func (s MimeTypeInfo) HasName() bool

func (MimeTypeInfo) IsValid

func (s MimeTypeInfo) IsValid() bool

func (MimeTypeInfo) Message

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

func (MimeTypeInfo) Name

func (s MimeTypeInfo) Name() (string, error)

func (MimeTypeInfo) NameBytes

func (s MimeTypeInfo) NameBytes() ([]byte, error)

func (MimeTypeInfo) NewExtensions

func (s MimeTypeInfo) NewExtensions(n int32) (capnp.TextList, error)

NewExtensions sets the extensions field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (MimeTypeInfo) Segment

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

func (MimeTypeInfo) SetExtensions

func (s MimeTypeInfo) SetExtensions(v capnp.TextList) error

func (MimeTypeInfo) SetName

func (s MimeTypeInfo) SetName(v string) error

func (MimeTypeInfo) String

func (s MimeTypeInfo) String() string

func (MimeTypeInfo) ToPtr

func (s MimeTypeInfo) ToPtr() capnp.Ptr

type MimeTypeInfo_Future

type MimeTypeInfo_Future struct{ *capnp.Future }

MimeTypeInfo_Future is a wrapper for a MimeTypeInfo promised by a client call.

func (MimeTypeInfo_Future) Struct

func (f MimeTypeInfo_Future) Struct() (MimeTypeInfo, error)

type MimeTypeInfo_List

type MimeTypeInfo_List = capnp.StructList[MimeTypeInfo]

MimeTypeInfo_List is a list of MimeTypeInfo.

func NewMimeTypeInfo_List

func NewMimeTypeInfo_List(s *capnp.Segment, sz int32) (MimeTypeInfo_List, error)

NewMimeTypeInfo creates a new list of MimeTypeInfo.

Jump to

Keyboard shortcuts

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