Package com.alibaba.graphscope.stdcxx
Interface OStream
-
- All Superinterfaces:
com.alibaba.fastffi.FFIPointer
,FFIType
,Serializable
- All Known Implementing Classes:
OStream_cxx_0x344ccaac
public interface OStream extends com.alibaba.fastffi.FFIPointer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OutputStream
outputStream()
void
put(byte c)
For `put(byte c)` we will generate a native method:
-
-
-
Method Detail
-
put
void put(byte c)
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); }
- Parameters:
c
- byte
-
outputStream
default OutputStream outputStream()
-
-