|
How to manipulate a data buffer |
|
|
A J2ME tip illustrating an alternative way to do manipulate the
data buffer using the setData( ) method to replace the Datagram's data
buffer with a new one.
byte[] dataBytes = "Hello, world\n".getBytes( );
dgram.setData(dataBytes, 0, dataBytes.length);
sender.send(dgram);
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.