Searched refs:Encode (Results 1 - 10 of 10) sorted by relevance

/system/nvram/messages/include/nvram/messages/
H A Dproto.hpp56 // 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) { function in struct:nvram::proto::detail::Codec
189 static bool Encode(const Type& value, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec
209 static bool Encode(const Vector<ElementType>& vector, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec
230 static bool Encode(const Optional<ValueType>& value, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec
317 static bool Encode(cons function in struct:nvram::proto::detail::__anon2572::StructDescriptor::FieldDescriptorBuilder::MemberCodecLookup::Type
395 static bool Encode(const StructType& object, ProtoWriter* writer) { function in class:nvram::proto::detail::__anon2572::MessageEncoder
436 static bool Encode(const StructType& object, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec
458 bool Encode(const Struct& object, OutputStreamBuffer* stream) { function in namespace:nvram::proto
[all...]
H A Dmessage_codec.h71 // |Encode()|.
72 static bool Encode(const void* object,
82 bool Encode(ProtoWriter* writer);
H A Dnvram_messages.h182 // Encode |msg| to |blob|. Returns true if successful.
184 bool Encode(const Message& msg, Blob* blob);
186 // Encode |msg| to |buffer|, which is of size |*size|. Updates |*size| to
189 bool Encode(const Message& msg, void* buffer, size_t* size);
/system/nvram/messages/
H A Dnvram_messages.cpp177 bool Encode(const Message& msg, Blob* blob) { function in namespace:nvram
179 return nvram::proto::Encode(msg, &stream) && stream.Truncate();
183 bool Encode(const Message& msg, void* buffer, size_t* size) { function in namespace:nvram
185 if (!nvram::proto::Encode(msg, &stream)) {
199 template NVRAM_EXPORT bool Encode<Request>(const Request&, Blob*);
200 template NVRAM_EXPORT bool Encode<Request>(const Request&, void*, size_t*);
203 template NVRAM_EXPORT bool Encode<Response>(const Response&, Blob*);
204 template NVRAM_EXPORT bool Encode<Response>(const Response&, void*, size_t*);
H A Dmessage_codec.cpp29 bool MessageEncoderBase::Encode(const void* object, function in class:nvram::proto::MessageEncoderBase
34 return encoder.Encode(writer);
43 bool MessageEncoderBase::Encode(ProtoWriter* writer) { function in class:nvram::proto::MessageEncoderBase
54 // * Reserve bytes in |writer| for the encoded size. Once |Encode()|
/system/nvram/hal/
H A Dtesting_nvram_implementation.cpp101 if (!nvram::Encode(request, command_buffer_, &request_size)) {
H A Dfake_nvram.cpp137 if (!nvram::Encode(response, command_buffer, &response_size)) {
/system/nvram/core/
H A Dpersistence.cpp38 // Not that the code uses |proto::detail::MessageEncoder<Object>::Encode()|
39 // instead of the regular |proto::Encode()| to encode the message. This results
50 if (!proto::detail::MessageEncoder<Object>::Encode(object, &writer) ||
/system/core/libcrypto_utils/tests/
H A Dandroid_pubkey_test.cpp125 TEST_F(AndroidPubkeyTest, Encode) {
/system/nvram/messages/tests/
H A Dnvram_messages_test.cpp31 ASSERT_TRUE(Encode(in, &blob));

Completed in 1644 milliseconds