Skip to content
Merged
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 @@ -61,6 +61,16 @@ public void writeBytes(byte[] bytes) throws IOException {
out.write(bytes);
}

/**
* @param bytes byte array will be written into stream
* @param offset the starting offset in {@code bytes} to start writing at
* @param len the length of the {@code bytes}, starting from {@code offset}
* @throws IOException in case if an I/O error occurs
*/
public void writeBytes(byte[] bytes, int offset, int len) throws IOException {
out.write(bytes, offset, len);
}

/**
* Dangerous. Can only be used for rare optimizations, for example when the string is written in parts
* without prior concatenation. The size of the string in bytes must be passed through writeUnsignedLeb128.
Expand Down