Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public void putRawBytes(byte[] d) {
   putRawBytes(d, 0, d.length);
 }
Exemplo n.º 3
0
 public void putString(byte[] str) {
   putInt(str.length);
   putRawBytes(str);
 }