Java ByteBuffer to VB .NET
- by user1797258
I have this java code :
ByteBuffer p = ByteBuffer.allocate(packet.length - 10 + 14);
p.order(ByteOrder.LITTLE_ENDIAN);
p.putInt(packet.length);
p.putInt(packet.request_id);
p.putInt(packet.type);
p.put(packet.paylod);
p.put((byte) 0);
p.put((byte) 0);
And i want to translate it to VB .NET
I started with this :
Dim p(packet.length - 10 + 14) As Byte
But after i dont know how to put these variables in the right way