Searched refs:cstr (Results 1 – 2 of 2) sorted by relevance
123 static void copyCStringToNativeBuffer(byte[] cstr, NativeBuffer buffer) { in copyCStringToNativeBuffer() argument127 long len = cstr.length; in copyCStringToNativeBuffer()132 unsafe.putByte(buffer.address() + i, cstr[i]); in copyCStringToNativeBuffer() local142 static NativeBuffer asNativeBuffer(byte[] cstr) { in asNativeBuffer() argument143 NativeBuffer buffer = getNativeBuffer(cstr.length+1); in asNativeBuffer()144 copyCStringToNativeBuffer(cstr, buffer); in asNativeBuffer()
40 byte[] cstr = path.getByteArrayForSysCalls(); in copyToNativeBuffer()41 int size = cstr.length + 1; in copyToNativeBuffer()50 NativeBuffers.copyCStringToNativeBuffer(cstr, buffer); in copyToNativeBuffer()