@@ -26,7 +26,7 @@ void FieldsChunkSerializer::serialize(MemoryOutputStream& stream, const Ptr<cons
2626 ChunkSerializer::totalSerializedLength += chunkStream.getLength ();
2727 }
2828 else if (fieldsChunk->getSerializedBytes () != nullptr ) {
29- CHUNK_CHECK_USAGE (B (fieldsChunk->getSerializedBytes ()->size ()) == chunk->getChunkLength (), " serialized length is incorrect: serialized=%" PRIzu " , chunk=%" PRIi64 , fieldsChunk->getSerializedBytes ()->size (), B (chunk->getChunkLength ()).get ());
29+ CHUNK_CHECK_USAGE (B (fieldsChunk->getSerializedBytes ()->size ()) == chunk->getChunkLength (), " serialized length is incorrect: serialized=%" PRIzu " , chunk=%" PRId64 , fieldsChunk->getSerializedBytes ()->size (), B (chunk->getChunkLength ()).get ());
3030 stream.writeBytes (*fieldsChunk->getSerializedBytes (), offset, length);
3131 }
3232 else if (offset == b (0 ) && length == chunk->getChunkLength ()) {
@@ -38,7 +38,7 @@ void FieldsChunkSerializer::serialize(MemoryOutputStream& stream, const Ptr<cons
3838 auto serializedBytes = new std::vector<uint8_t >();
3939 stream.copyData (*serializedBytes, startPosition, serializedLength);
4040 fieldsChunk->setSerializedBytes (serializedBytes);
41- CHUNK_CHECK_USAGE (B (serializedBytes->size ()) == chunk->getChunkLength (), " serialized length is incorrect: serialized=%" PRIzu " , chunk=%" PRIi64 , serializedBytes->size (), B (chunk->getChunkLength ()).get ());
41+ CHUNK_CHECK_USAGE (B (serializedBytes->size ()) == chunk->getChunkLength (), " serialized length is incorrect: serialized=%" PRIzu " , chunk=%" PRId64 , serializedBytes->size (), B (chunk->getChunkLength ()).get ());
4242 }
4343 else {
4444 MemoryOutputStream chunkStream (fieldsChunk->getChunkLength ());
@@ -48,7 +48,7 @@ void FieldsChunkSerializer::serialize(MemoryOutputStream& stream, const Ptr<cons
4848 auto serializedBytes = new std::vector<uint8_t >();
4949 chunkStream.copyData (*serializedBytes);
5050 fieldsChunk->setSerializedBytes (serializedBytes);
51- CHUNK_CHECK_USAGE (B (serializedBytes->size ()) == chunk->getChunkLength (), " serialized length is incorrect: serialized=%" PRIzu " , chunk=%" PRIi64 , serializedBytes->size (), B (chunk->getChunkLength ()).get ());
51+ CHUNK_CHECK_USAGE (B (serializedBytes->size ()) == chunk->getChunkLength (), " serialized length is incorrect: serialized=%" PRIzu " , chunk=%" PRId64 , serializedBytes->size (), B (chunk->getChunkLength ()).get ());
5252 }
5353}
5454
@@ -63,7 +63,7 @@ const Ptr<Chunk> FieldsChunkSerializer::deserialize(MemoryInputStream& stream, c
6363 auto serializedBytes = new std::vector<uint8_t >();
6464 stream.copyData (*serializedBytes, startPosition, chunkLength);
6565 fieldsChunk->setSerializedBytes (serializedBytes);
66- CHUNK_CHECK_USAGE (B (serializedBytes->size ()) == fieldsChunk->getChunkLength (), " serialized length is incorrect: serialized=%" PRIzu " , chunk=%" PRIi64 , serializedBytes->size (), B (fieldsChunk->getChunkLength ()).get ());
66+ CHUNK_CHECK_USAGE (B (serializedBytes->size ()) == fieldsChunk->getChunkLength (), " serialized length is incorrect: serialized=%" PRIzu " , chunk=%" PRId64 , serializedBytes->size (), B (fieldsChunk->getChunkLength ()).get ());
6767 return fieldsChunk;
6868}
6969
0 commit comments