diff options
Diffstat (limited to 'courgette/streams.h')
-rw-r--r-- | courgette/streams.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/courgette/streams.h b/courgette/streams.h index 3309571..144dca7 100644 --- a/courgette/streams.h +++ b/courgette/streams.h @@ -126,6 +126,10 @@ class SinkStream { // Appends the 'varint32' encoding of |value| to the stream. void WriteVarint32Signed(int32 value); + // Appends the 'varint32' encoding of |value| to the stream. + // On platforms where sizeof(size_t) != sizeof(int32), do a safety check. + void WriteSizeVarint32(size_t value); + // Contents of |other| are appended to |this| stream. The |other| stream // becomes retired. void Append(SinkStream* other); |