Closed si262001 closed 12 years ago
vanilla.java.chronicle.ByteString public void append(byte b) { int len = length(); if (len >= 255) throw new IndexOutOfBoundsException("Cannot append len=" + len); data[len] = b; data[0]++; }
I guess "data[len]" should be "date[len + 1] = b";
correct, as the first byte is the length. will fix.
fixed
vanilla.java.chronicle.ByteString public void append(byte b) { int len = length(); if (len >= 255) throw new IndexOutOfBoundsException("Cannot append len=" + len); data[len] = b; data[0]++; }
I guess "data[len]" should be "date[len + 1] = b";