Example #1
0
 public void putMPInt(byte[] foo) {
   int i = foo.length;
   if ((foo[0] & 0x80) != 0) {
     i++;
     putInt(i);
     putByte((byte) 0);
   } else {
     putInt(i);
   }
   putRawBytes(foo);
 }
Example #2
0
 public void putRawBytes(byte[] d) {
   putRawBytes(d, 0, d.length);
 }
Example #3
0
 public void putString(byte[] str) {
   putInt(str.length);
   putRawBytes(str);
 }