Canonicalize encodes a struct into its canonical form: a single- segment blob without a segment table.
ErrorAnswer returns a Answer that always returns error e.
ErrorClient returns a Client that always returns error e.
HasData reports whether p has non-zero size.
ImmediateAnswer returns an Answer that accesses s.
IsErrorClient reports whether c was created with ErrorClient.
IsFixedAnswer reports whether an answer was created by ImmediateAnswer or ErrorAnswer.
IsUnimplemented reports whether e indicates an unimplemented method error.
IsValid reports whether p is valid.
MultiSegment returns a new arena that allocates new segments when they are full.
MustUnmarshalRoot reads an unpacked serialized stream and returns its root pointer.
MustUnmarshalRootPtr reads an unpacked serialized stream and returns its root pointer.
NewBitList creates a new bit list, preferring placement in s.
NewCallOptions builds a CallOptions value from a list of individual options.
NewCompositeList creates a new composite list, preferring placement in s.
NewData creates a new list of UInt8 from a byte slice.
NewDataList allocates a new list of data pointers, preferring placement in s.
NewDecoder creates a new Cap'n Proto framer that reads from r.
NewEncoder creates a new Cap'n Proto framer that writes to w.
NewFloat32List creates a new list of Float32, preferring placement in s.
NewFloat64List creates a new list of Float64, preferring placement in s.
NewInt16List creates a new list of Int16, preferring placement in s.
NewInt32List creates a new list of Int32, preferring placement in s.
NewInt64List creates a new list of Int64, preferring placement in s.
NewInt8List creates a new list of Int8, preferring placement in s.
NewInterface creates a new interface pointer.
NewMessage creates a message with a new root and returns the first segment.
NewPackedDecoder creates a new Cap'n Proto framer that reads from a packed stream r.
NewPackedEncoder creates a new Cap'n Proto framer that writes to a packed stream w.
NewPipeline returns a new pipeline based on an answer.
NewPointerList allocates a new list of pointers, preferring placement in s.
NewRootStruct creates a new struct, preferring placement in s, then sets the message's root to the new struct.
NewStruct creates a new struct, preferring placement in s.
NewText creates a new list of UInt8 from a string.
NewTextFromBytes creates a NUL-terminated list of UInt8 from a byte slice.
NewTextList allocates a new list of text pointers, preferring placement in s.
NewUInt16List creates a new list of UInt16, preferring placement in s.
NewUInt32List creates a new list of UInt32, preferring placement in s.
NewUInt64List creates a new list of UInt64, preferring placement in s.
NewUInt8List creates a new list of UInt8, preferring placement in s.
NewVoidList creates a list of voids.
PointerDefault returns p if it is valid, otherwise it unmarshals def.
SamePtr reports whether p and q refer to the same object.
SetOptionValue returns a call option that associates a value to an option key.
SingleSegment returns a new arena with an expanding single-segment buffer.
ToData attempts to convert p into Data.
ToDataDefault attempts to convert p into Data, returning def on failure.
ToInterface converts p to an Interface.
ToList converts p to a List.
ToListDefault attempts to convert p into a list, reading the default value from def if p is not a list.
ToStruct converts p to a Struct.
ToStructDefault attempts to convert p into a struct, reading the default value from def if p is not a struct.
ToText attempts to convert p into Text.
ToTextDefault attempts to convert p into Text, returning def on failure.
Transform applies a sequence of pipeline operations to a pointer and returns the result.
TransformPtr applies a sequence of pipeline operations to a pointer and returns the result.
Unmarshal reads an unpacked serialized stream into a message.
UnmarshalPacked reads a packed serialized stream into a message.