public byte[] toByteArray() { long l = length(); if( l > Integer.MAX_VALUE ) { throw new ArrayIndexOutOfBoundsException("Native string is larger than the maximum Java array"); } byte []rc = new byte[(int) l]; NativeBuffer.NativeBufferJNI.buffer_copy(StdStringJNI.c_str_ptr(self), 0, rc, 0, rc.length); return rc; } }
public NativeStdString() { super(StdStringJNI.create()); }
public long length() { assertAllocated(); return StdStringJNI.length(self); }
public NativeStdString() { super(StdStringJNI.create()); }
public long length() { assertAllocated(); return StdStringJNI.length(self); }
public long length() { assertAllocated(); return StdStringJNI.length(self); }
public byte[] toByteArray() { long l = length(); if( l > Integer.MAX_VALUE ) { throw new ArrayIndexOutOfBoundsException("Native string is larger than the maximum Java array"); } byte []rc = new byte[(int) l]; NativeBuffer.NativeBufferJNI.buffer_copy(StdStringJNI.c_str_ptr(self), 0, rc, 0, rc.length); return rc; } }
public void delete() { assertAllocated(); StdStringJNI.delete(self); self = 0; }
public void delete() { assertAllocated(); StdStringJNI.delete(self); self = 0; }
public void delete() { assertAllocated(); StdStringJNI.delete(self); self = 0; }
public NativeStdString() { super(StdStringJNI.create()); }
public byte[] toByteArray() { long l = length(); if( l > Integer.MAX_VALUE ) { throw new ArrayIndexOutOfBoundsException("Native string is larger than the maximum Java array"); } byte []rc = new byte[(int) l]; NativeBuffer.NativeBufferJNI.buffer_copy(StdStringJNI.c_str_ptr(self), 0, rc, 0, rc.length); return rc; } }