Canonicalize encodes a struct into its canonical form: a single- segment blob without a segment table.
Disconnected returns an error that formats as the given text and will report true when passed to IsDisconnected.
Equal returns true iff p1 and p2 are equal.
ErrorAnswer returns a Answer that always returns error e.
ErrorClient returns a Client that always returns error e.
ImmediateAnswer returns an Answer that accesses ptr.
IsDisconnected reports whether e indicates a failure due to loss of a necessary capability.
IsUnimplemented reports whether e indicates that functionality is unimplemented.
MultiSegment returns a new arena that allocates new segments when they are full.
MustUnmarshalRoot reads an unpacked serialized stream and returns its root pointer.
NewAnswerQueue creates a new answer queue.
NewBitList creates a new bit list, preferring placement in s.
NewClient creates the first reference to a capability.
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.
NewEnumList creates a new list of T, preferring placement in s.
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.
NewLocalPromise returns a client that will eventually resolve to a capability, supplied via the resolver.
NewMessage creates a message with a new root and returns the first segment.
Allocate and return a freshly initialized Metadata.
Analogous to NewSingleSegmentMessage, but using MultiSegment.
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.
NewPointerList allocates a new list of pointers, preferring placement in s.
NewPromise creates a new unresolved promise.
NewPromisedClient creates the first reference to a capability that can resolve to a different capability.
NewReadOnlySingleSegment creates a new read only arena with the given data.
NewRequest creates a new request calling the specified method on the specified client.
NewRootStruct creates a new struct, preferring placement in s, then sets the message's root to the new struct.
NewSingleSegmentMessage(b) is equivalent to NewMessage(SingleSegment(b)), except that it panics instead of returning an error.
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.
SamePtr reports whether p and q refer to the same object.
SetClientLeakFunc sets a callback for reporting Clients that went out of scope without being released.
SingleSegment constructs a SingleSegmentArena from b.
Transform applies a sequence of pipeline operations to a pointer and returns the result.
Unimplemented returns an error that formats as the given text and will report true when passed to IsUnimplemented.
Unmarshal reads an unpacked serialized stream into a message.
UnmarshalPacked reads a packed serialized stream into a message.