File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/main/java/org/scijava/io Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,18 @@ default int getBytes(long startPos, byte[] bytes) {
80
80
* @param length the number of elements to append from the bytes array
81
81
*/
82
82
default void appendBytes (byte [] bytes , int length ) {
83
- setBytes (getMaxPos () + 1 , bytes , 0 , length );
83
+ appendBytes (bytes , 0 , length );
84
+ }
85
+
86
+ /**
87
+ * Appends the given bytes to the buffer
88
+ *
89
+ * @param bytes the array containing the bytes to append to the buffer
90
+ * @param offset the offset in the bytes array
91
+ * @param length the number of elements to append from the bytes array
92
+ */
93
+ default void appendBytes (byte [] bytes , int offset , int length ) {
94
+ setBytes (getMaxPos () + 1 , bytes , offset , length );
84
95
}
85
96
86
97
/**
You can’t perform that action at this time.
0 commit comments