diff options
Diffstat (limited to 'src/com/isode/stroke/base/ByteArray.java')
-rw-r--r-- | src/com/isode/stroke/base/ByteArray.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/isode/stroke/base/ByteArray.java b/src/com/isode/stroke/base/ByteArray.java index 8b140ed..077c58c 100644 --- a/src/com/isode/stroke/base/ByteArray.java +++ b/src/com/isode/stroke/base/ByteArray.java @@ -149,8 +149,13 @@ public class ByteArray { * * @return a reference to the updated object */ - private ByteArray append(byte[] b) { - for (int i = 0; i < b.length; i++) { + public ByteArray append(byte[] b) { + return append(b, b.length); + } + + /** Mutable add */ + public ByteArray append(byte[] b, int len) { + for (int i = 0; i < len; i++) { append(b[i]); } return this; |