Lines 2558-2564
public class JavaEmitter implements GlueEmitter {
Link Here
|
2558 |
" (*env)->FatalError(env, \"initializeImpl() not called\");\n"+ |
2558 |
" (*env)->FatalError(env, \"initializeImpl() not called\");\n"+ |
2559 |
" return NULL;\n"+ |
2559 |
" return NULL;\n"+ |
2560 |
" }\n"+ |
2560 |
" }\n"+ |
2561 |
" jbyteBuffer = (*env)->CallStaticObjectMethod(env, clazzBuffers, cstrBuffersNew, capacity);\n"+ |
2561 |
" jint intcapacity = capacity;\n" + |
|
|
2562 |
" jbyteBuffer = (*env)->CallStaticObjectMethod(env, clazzBuffers, cstrBuffersNew, intcapacity);\n"+ |
2562 |
" byteBufferPtr = (*env)->GetDirectBufferAddress(env, jbyteBuffer);\n"+ |
2563 |
" byteBufferPtr = (*env)->GetDirectBufferAddress(env, jbyteBuffer);\n"+ |
2563 |
" memcpy(byteBufferPtr, source_address, capacity);\n"+ |
2564 |
" memcpy(byteBufferPtr, source_address, capacity);\n"+ |
2564 |
" return jbyteBuffer;\n"+ |
2565 |
" return jbyteBuffer;\n"+ |