Package com.alibaba.graphscope.stdcxx
Class OStream_cxx_0x344ccaac
- java.lang.Object
-
- com.alibaba.fastffi.FFIPointerImpl
-
- com.alibaba.graphscope.stdcxx.OStream_cxx_0x344ccaac
-
- All Implemented Interfaces:
com.alibaba.fastffi.FFIPointer
,FFIType
,OStream
,Serializable
public class OStream_cxx_0x344ccaac extends FFIPointerImpl implements OStream
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
HASH_SHIFT
static int
SIZE
-
Fields inherited from class com.alibaba.fastffi.FFIPointerImpl
address
-
-
Constructor Summary
Constructors Constructor Description OStream_cxx_0x344ccaac(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
static void
nativePut(long ptr, byte c0)
void
put(byte c)
For `put(byte c)` we will generate a native method:String
toString()
-
Methods inherited from class com.alibaba.fastffi.FFIPointerImpl
getAddress
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.graphscope.stdcxx.OStream
outputStream
-
-
-
-
Method Detail
-
put
public void put(byte c)
Description copied from interface:OStream
For `put(byte c)` we will generate a native method:
In the generated JNI cxx file:public class OStreamImpl{ public void put(byte c) { nativePut(getAddress(), c); } native void nativePut(long address, byte c); }
void Java_xxx_nativePut(JNIEnv*, jclass, jlong address, jbytec) { std::ostream* obj = reinterpret_cast<std::ostream*>(address); obj->put(c); }
-
nativePut
public static void nativePut(long ptr, byte c0)
-
-