code: static public Object decodeVarbinary(final ByteBuffer bb) {
          final int length = bb.getInt();
          final byte[] data = new byte[length];
          bb.get(data);
          return data;
      }
docs: Read a varbinary according to the Export encoding specification
  
  @param bb
  @throws IOException