Searched hist:9705 (Results 1 - 2 of 2) sorted by relevance

/gem5/src/proto/
H A Dprotoio.hhdiff 9705:177e8d8e50fc Thu May 30 00:53:00 EDT 2013 Andreas Hansson <andreas.hansson@arm.com> base: Avoid size limitation on protobuf coded streams

This patch changes how the streams are created to avoid the size
limitation on the coded streams. As we only read/write a single
message at a time, there is never any message larger than a few
bytes. However, the coded stream eventually complains that its
internal counter reaches 64+ MByte if the total file size exceeds this
value.

Based on suggestions in the protobuf discussion forums, the coded
stream is now created for every message that is read/written. The
result is that the internal byte count never goes about tens of bytes,
and we can read/write any size file that the underlying file I/O can
handle.
H A Dprotoio.ccdiff 9705:177e8d8e50fc Thu May 30 00:53:00 EDT 2013 Andreas Hansson <andreas.hansson@arm.com> base: Avoid size limitation on protobuf coded streams

This patch changes how the streams are created to avoid the size
limitation on the coded streams. As we only read/write a single
message at a time, there is never any message larger than a few
bytes. However, the coded stream eventually complains that its
internal counter reaches 64+ MByte if the total file size exceeds this
value.

Based on suggestions in the protobuf discussion forums, the coded
stream is now created for every message that is read/written. The
result is that the internal byte count never goes about tens of bytes,
and we can read/write any size file that the underlying file I/O can
handle.

Completed in 8 milliseconds