Code example for ByteBuffer

Methods: putLong

0
        address = AddressMarshalling.readWireForm(buf, addressIdx);
    } 
 
    protected void writeWireForm(ByteBuffer wireForm) throws WireFormException,
                                                     IOException { 
        wireForm.putLong(timeIdx, time);
        sender.writeWireForm(wireForm, identityIdx);
        if (address != null) {
            AddressMarshalling.writeWireForm(address, wireForm, addressIdx);
        } else { 
            AddressMarshalling.writeNullWireForm(wireForm, addressIdx);
        } 
    } 
 
}