Beispiel #1
0
 public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws Exception {
   if (buf == null || (offset == 0 && length == buf.length))
     return marshaller.objectFromByteBuffer(buf);
   byte[] tmp = new byte[length];
   System.arraycopy(buf, offset, tmp, 0, length);
   return marshaller.objectFromByteBuffer(tmp);
 }
Beispiel #2
0
 public Object objectFromByteBuffer(byte[] buf) throws Exception {
   return buf == null ? null : marshaller.objectFromByteBuffer(buf);
 }