Home | History | Annotate | Download | only in proto

Lines Matching full:marshal

45 // RequiredNotSetError is the error returned if Marshal is called with
63 // errRepeatedHasNil is the error returned if Marshal is called with
67 // errOneofHasNil is the error returned if Marshal is called with
71 // ErrNil is the error returned if Marshal is called with nil.
72 ErrNil = errors.New("proto: Marshal called with nil")
74 // ErrTooLarge is the error returned if Marshal is called with a
223 // Marshaler is the interface representing objects that can marshal themselves.
225 Marshal() ([]byte, error)
228 // Marshal takes the protocol buffer
230 func Marshal(pb Message) ([]byte, error) {
231 // Can the object marshal itself?
233 return m.Marshal()
236 err := p.Marshal(pb)
258 // Marshal takes the protocol buffer
261 func (p *Buffer) Marshal(pb Message) error {
262 // Can the object marshal itself?
264 data, err := m.Marshal()
289 // Can the object marshal itself? If so, Size is slow.
292 b, _ := m.Marshal()
550 // Can the object marshal itself?
553 data, err := m.Marshal()
572 // Can the object marshal itself?
575 data, _ := m.Marshal()
972 // Can the object marshal itself?
975 data, err := m.Marshal()
1006 // Can the object marshal itself?
1009 data, _ := m.Marshal()