public long readRawLittleEndian64() throws IOException
    {
        // final byte[] buffer = this.buffer;
        // int offset = this.offset;

        final byte[] bs = new byte[8];
        buffer.get(bs);

        // final byte b1 = buffer[offset++];
        // final byte b2 = buffer[offset++];
        // final byte b3 = buffer[offset++];
        // final byte b4 = buffer[offset++];
        // final byte b5 = buffer[offset++];
        // final byte b6 = buffer[offset++];
        // final byte b7 = buffer[offset++];
        // final byte b8 = buffer[offset++];
        //
        // this.offset = offset;

        return (((long) bs[0] & 0xff)) |
                (((long) bs[1] & 0xff) << 8) |
                (((long) bs[2] & 0xff) << 16) |
                (((long) bs[3] & 0xff) << 24) |
                (((long) bs[4] & 0xff) << 32) |
                (((long) bs[5] & 0xff) << 40) |
                (((long) bs[6] & 0xff) << 48) |
                (((long) bs[7] & 0xff) << 56);
    }
public long readRawLittleEndian64 ( ) throws IOException { final byte [ ] bs = new byte [ 8 ] ; buffer . get ( bs ) ; return ( ( ( long ) bs [ 0 ] & 0xff ) ) | ( ( ( long ) bs [ 1 ] & 0xff ) << 8 ) | ( ( ( long ) bs [ 2 ] & 0xff ) << 16 ) | ( ( ( long ) bs [ 3 ] & 0xff ) << 24 ) | ( ( ( long ) bs [ 4 ] & 0xff ) << 32 ) | ( ( ( long ) bs [ 5 ] & 0xff ) << 40 ) | ( ( ( long ) bs [ 6 ] & 0xff ) << 48 ) | ( ( ( long ) bs [ 7 ] & 0xff ) << 56 ) ; }
Read a 64-bit little-endian integer from the internal byte buffer.