diff options
author | rsgowman <rgowman@google.com> | 2018-03-15 10:10:22 -0400 |
---|---|---|
committer | Gil <mcg@google.com> | 2018-03-15 07:10:22 -0700 |
commit | 35de3c54d543d7be16fdcae9205ffe247f2917a7 (patch) | |
tree | ec9878e1617d075f606812464f5e1f62e25a2440 /Firestore/core/src/firebase/firestore/remote/serializer.h | |
parent | 15bec819bc217f51599c430fe29832ef49a970b6 (diff) |
Move creation of pb_ostream_t's into Writer (#920)
* Move creation of pb_ostream_t's into Writer
Writer now owns these structs
* Writer::FromBuffer -> Writer::Wrap
* add todo for possible future simplification.
Diffstat (limited to 'Firestore/core/src/firebase/firestore/remote/serializer.h')
-rw-r--r-- | Firestore/core/src/firebase/firestore/remote/serializer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Firestore/core/src/firebase/firestore/remote/serializer.h b/Firestore/core/src/firebase/firestore/remote/serializer.h index 635ffc3..10cacbc 100644 --- a/Firestore/core/src/firebase/firestore/remote/serializer.h +++ b/Firestore/core/src/firebase/firestore/remote/serializer.h @@ -67,6 +67,9 @@ class Serializer { * appended to this vector. */ // TODO(rsgowman): error handling, incl return code. + // TODO(rsgowman): If we never support any output except to a vector, it may + // make sense to have Serializer own the vector and provide an accessor rather + // than asking the user to create it first. static void EncodeFieldValue( const firebase::firestore::model::FieldValue& field_value, std::vector<uint8_t>* out_bytes); |