Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public ChannelBufferOutput(WritableByteChannel channel) {

@Override
public void flush(MessageBuffer buf, int offset, int len) throws IOException {
assert(offset + len < buf.size());
assert(offset + len <= buf.size());
ByteBuffer bb = buf.toByteBuffer(offset, len);
channel.write(bb);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public OutputStreamBufferOutput(OutputStream out) {

@Override
public void flush(MessageBuffer buf, int offset, int len) throws IOException {
assert(offset + len < buf.size());
assert(offset + len <= buf.size());

// TODO reuse the allocated buffer
byte[] in = new byte[len];
Expand Down