public class FFiUtils extends Object
| Constructor and Description |
|---|
FFiUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <L extends Leb128Serializable,R extends Leb128Serializable> |
listOfTuplesToOutputPointer(List<Tuple<L,R>> list,
com.sun.jna.Pointer output,
com.sun.jna.ptr.IntByReference outputSize)
Serialize a list of tuple to a memory location specified by the Pointer; set its actual size in the pointed int.
|
static <K extends Leb128Serializable,V extends Leb128Serializable> |
mapToOutputPointer(Map<K,V> map,
com.sun.jna.Pointer output,
com.sun.jna.ptr.IntByReference outputSize)
Serialize a map to a memory location specified by the Pointer; set its actual size in the pointed int.
|
static <V extends Leb128Serializable> |
setToOutputPointer(Set<V> set,
com.sun.jna.Pointer output,
com.sun.jna.ptr.IntByReference outputSize) |
public static <K extends Leb128Serializable,V extends Leb128Serializable> int mapToOutputPointer(Map<K,V> map, com.sun.jna.Pointer output, com.sun.jna.ptr.IntByReference outputSize) throws CloudproofException
K - the map key type. Must be Leb128SerializableV - the map value type. Must be Leb128Serializablemap - the map to serialize and exportoutput - the output PointeroutputSize - the output byte sizeCloudproofException - if the pointer cannot be constructedpublic static <L extends Leb128Serializable,R extends Leb128Serializable> int listOfTuplesToOutputPointer(List<Tuple<L,R>> list, com.sun.jna.Pointer output, com.sun.jna.ptr.IntByReference outputSize) throws CloudproofException
L - the tuple key type. Must be Leb128SerializableR - the tuple value type. Must be Leb128Serializablelist - the list to serialize and exportoutput - the output PointeroutputSize - the output byte sizeCloudproofException - if the pointer cannot be constructedpublic static <V extends Leb128Serializable> int setToOutputPointer(Set<V> set, com.sun.jna.Pointer output, com.sun.jna.ptr.IntByReference outputSize) throws CloudproofException
CloudproofExceptionCopyright © 2023. All rights reserved.