| Index: src/serialize.h
|
| ===================================================================
|
| --- src/serialize.h (revision 1142)
|
| +++ src/serialize.h (working copy)
|
| @@ -135,7 +135,7 @@
|
|
|
| // Returns the serialized buffer. Ownership is transferred to the
|
| // caller. Only the destructor and getters may be called after this call.
|
| - void Finalize(char** str, int* len);
|
| + void Finalize(byte** str, int* len);
|
|
|
| int roots() { return roots_; }
|
| int objects() { return objects_; }
|
| @@ -211,7 +211,7 @@
|
|
|
| class SnapshotReader {
|
| public:
|
| - SnapshotReader(const char* str, int len): str_(str), end_(str + len) {}
|
| + SnapshotReader(const byte* str, int len): str_(str), end_(str + len) {}
|
|
|
| void ExpectC(char expected) {
|
| int c = GetC();
|
| @@ -247,8 +247,8 @@
|
| }
|
|
|
| private:
|
| - const char* str_;
|
| - const char* end_;
|
| + const byte* str_;
|
| + const byte* end_;
|
| };
|
|
|
|
|
| @@ -257,7 +257,7 @@
|
| class Deserializer: public ObjectVisitor {
|
| public:
|
| // Create a deserializer. The snapshot is held in str and has size len.
|
| - Deserializer(const char* str, int len);
|
| + Deserializer(const byte* str, int len);
|
|
|
| virtual ~Deserializer();
|
|
|
|
|