public byte[] getBytes(int offset, int length) {
   return Arrays.copyOfRange(bytes, offset, offset + length);
 }
 public String getString(int offset, int length) {
   return new String(Arrays.copyOfRange(bytes, offset, offset + length));
 }