Skip to content

Commit

Permalink
Add arena start(baseline) parameter based on wire size.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Aug 20, 2024
1 parent ce4c037 commit bf76d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ typename block::cptr block::deserialize(arena& arena, uint32_t version,
return nullptr;

// Set starting address of block allocation (nullptr if not detachable).
const auto memory = pointer_cast<uint8_t>(arena.start());
const auto memory = pointer_cast<uint8_t>(arena.start(data.size()));

istream source{ data };
byte_reader reader{ source, &arena };
Expand Down

0 comments on commit bf76d99

Please sign in to comment.