Skip to content

Commit

Permalink
Update WireHelpers.java
Browse files Browse the repository at this point in the history
  • Loading branch information
stepeos authored and dwrensha committed Oct 22, 2024
1 parent e63801c commit c9e4512
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions runtime/src/main/java/org/capnproto/WireHelpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -850,11 +850,7 @@ static Data.Builder setDataPointer(int refOffset,
SegmentBuilder segment,
Data.Reader value) {
Data.Builder builder = initDataPointer(refOffset, segment, value.size);

// TODO is there a way to do this with bulk methods?
for (int i = 0; i < builder.size; ++i) {
builder.buffer.put(builder.offset + i, value.buffer.get(value.offset + i));
}
builder.buffer.put(value.buffer);
return builder;
}

Expand Down

0 comments on commit c9e4512

Please sign in to comment.