Code example for ByteBuffer

Methods: getgetIntgetLong

0
    } 
 
 
    public void parse(final ByteBuffer bf) {
        this.key = new byte[16];
        bf.get(this.key);
        this.op = bf.get();
        this.number = bf.getInt();
        this.offset = bf.getLong();
        this.length = bf.getInt();
    } 
 
 
    @Override 
    public String toString() {
        return "OpItem number:" + this.number + ", op:" + (int) this.op + ", offset:" + this.offset + ", length:"
                + this.length;
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java