Hi i am having an object in ruby which is of type Byte ByteBuffer
Object type: java.nio.HeapByteBuffer[pos=0 lim=437 cap=437]
I want to convert/decode this object into String in ruby
Hi i am having an object in ruby which is of type Byte ByteBuffer
Object type: java.nio.HeapByteBuffer[pos=0 lim=437 cap=437]
I want to convert/decode this object into String in ruby
There's
String.from_java_bytesextension however it does not take an (optional) offset and length thus first copy the buffer's content into a newbyte[]array: