Lines Matching refs:Encode
56 // if (!nvram::proto::Encode(employee, &stream)) {
74 // |nvram::proto::Encode()| and |nvram::proto::Decode()| templates to obtain
107 // * |static bool Encode(const Type& object, ProtoWriter* writer)| writes the
131 // noinline to prevent the compiler from inlining |Codec::Encode| for every
135 return Codec::Encode(value, writer);
153 static bool Encode(const Blob& blob, ProtoWriter* writer) {
189 static bool Encode(const Type& value, ProtoWriter* writer) {
209 static bool Encode(const Vector<ElementType>& vector, ProtoWriter* writer) {
230 static bool Encode(const Optional<ValueType>& value, ProtoWriter* writer) {
317 static bool Encode(const TaggedUnionType& object, ProtoWriter* writer) {
395 static bool Encode(const StructType& object, ProtoWriter* writer) {
396 return MessageEncoderBase::Encode(
436 static bool Encode(const StructType& object, ProtoWriter* writer) {
437 return MessageEncoder<StructType>::Encode(object, writer);
454 // Encode |object| and write the result to |stream|. Returns true if successful,
458 bool Encode(const Struct& object, OutputStreamBuffer* stream) {