code: public static long readLong(ByteBuffer buf) {
          byte len=buf.get();
          if(len == 0)
              return 0;
          return makeLong(buf, len);
      }
docs: Reads a long from a buffer.
  @param buf the buffer
  @return the long read from the buffer