Java ByteBuffer to VB .NET
Posted
by
user1797258
on Stack Overflow
See other posts from Stack Overflow
or by user1797258
Published on 2012-11-03T22:58:50Z
Indexed on
2012/11/03
22:59 UTC
Read the original article
Hit count: 419
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
© Stack Overflow or respective owner