Package com.alibaba.graphscope.stdcxx
Class FakeFFIByteVector
- java.lang.Object
-
- com.alibaba.fastffi.FFIPointerImpl
-
- com.alibaba.graphscope.stdcxx.FakeFFIByteVector
-
- All Implemented Interfaces:
com.alibaba.fastffi.CXXPointer,com.alibaba.fastffi.FFIPointer,com.alibaba.fastffi.FFISettablePointer,FFIType,StdVector<Byte>,Serializable
public class FakeFFIByteVector extends FFIPointerImpl implements StdVector<Byte>
This is a FFIWrapper for std::vector. The code origins from the generated code via FFI and llvm4jni, with hands-on optimization.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.alibaba.graphscope.stdcxx.StdVector
StdVector.Factory<E>
-
-
Field Summary
Fields Modifier and Type Field Description static intHASH_SHIFTlongsizestatic intSIZE-
Fields inherited from class com.alibaba.fastffi.FFIPointerImpl
address
-
-
Constructor Summary
Constructors Constructor Description FakeFFIByteVector(long address, long length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcapacity()voidclear()longdata()voiddelete()voidensure(long offset, int requiredSize)Ensure there at at least requiredSize after offset.booleanequals(Object o)voidfinishSetting(long offset)Byteget(long arg0)bytegetRaw(long arg0)voidgetRawBytes(byte[] b, int bOff, long offset, int size)Read several bytes to a byte array.chargetRawChar(long arg0)doublegetRawDouble(long arg0)floatgetRawFloat(long arg0)intgetRawInt(long arg0)longgetRawLong(long arg0)shortgetRawShort(long arg0)inthashCode()static longnativeCreateFactory0()static @com.alibaba.fastffi.CXXReference bytenativeGet(long var0, long var2)static voidnativeSet(long var0, long var2, byte var4)voidpush_back(Byte arg0)voidreserve(long arg0)voidresize(long arg0)voidresizeWithMoreSpace(long addSpace)Resize with additional space.voidset(long arg0, Byte arg1)voidsetAddress(long arg0)voidsetRawByte(long arg0, byte arg1)voidsetRawChar(long arg0, char arg1)voidsetRawDouble(long arg0, double arg1)voidsetRawFloat(long arg0, float arg1)voidsetRawInt(long arg0, int arg1)voidsetRawLong(long arg0, long arg1)voidsetRawShort(long arg0, short arg1)longsize()StringtoString()-
Methods inherited from class com.alibaba.fastffi.FFIPointerImpl
getAddress
-
-
-
-
Method Detail
-
delete
public void delete()
- Specified by:
deletein interfacecom.alibaba.fastffi.CXXPointer
-
getRaw
public byte getRaw(long arg0)
-
getRawChar
public char getRawChar(long arg0)
-
getRawShort
public short getRawShort(long arg0)
-
getRawInt
public int getRawInt(long arg0)
-
getRawFloat
public float getRawFloat(long arg0)
-
getRawDouble
public double getRawDouble(long arg0)
-
getRawLong
public long getRawLong(long arg0)
-
getRawBytes
public void getRawBytes(byte[] b, int bOff, long offset, int size)Read several bytes to a byte array.- Parameters:
b- Receive databOff- first place to putoffset- offset in this buffer, from where we read now.size- how many to read
-
nativeGet
public static @com.alibaba.fastffi.CXXReference byte nativeGet(long var0, long var2)
-
resizeWithMoreSpace
public void resizeWithMoreSpace(long addSpace)
Resize with additional space.- Parameters:
addSpace- more space need.
-
ensure
public void ensure(long offset, int requiredSize)Ensure there at at least requiredSize after offset.- Parameters:
offset- offset to checkrequiredSize- additional spaced needed.
-
setRawByte
public void setRawByte(long arg0, byte arg1)
-
setRawShort
public void setRawShort(long arg0, short arg1)
-
setRawChar
public void setRawChar(long arg0, char arg1)
-
setRawInt
public void setRawInt(long arg0, int arg1)
-
setRawLong
public void setRawLong(long arg0, long arg1)
-
setRawFloat
public void setRawFloat(long arg0, float arg1)
-
setRawDouble
public void setRawDouble(long arg0, double arg1)
-
finishSetting
public void finishSetting(long offset)
-
nativeSet
public static void nativeSet(long var0, long var2, byte var4)
-
setAddress
public void setAddress(long arg0)
- Specified by:
setAddressin interfacecom.alibaba.fastffi.FFISettablePointer
-
nativeCreateFactory0
public static long nativeCreateFactory0()
-
-