Class EncoderJNI
java.lang.Object
com.aayushatharva.brotli4j.encoder.EncoderJNI
JNI wrapper for brotli encoder.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumprivate static classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleannativeAttachDictionary(long[] context, ByteBuffer dictionary) private static ByteBuffernativeCreate(long[] context) private static voidnativeDestroy(long[] context) private static voidnativeDestroyDictionary(ByteBuffer dictionary) private static ByteBuffernativePrepareDictionary(ByteBuffer dictionary, long type) private static ByteBuffernativePull(long[] context) private static voidnativePush(long[] context, int length) (package private) static PreparedDictionaryprepareDictionary(ByteBuffer dictionary, int sharedDictionaryType) Prepares raw or serialized dictionary for being used by encoder.
-
Constructor Details
-
EncoderJNI
public EncoderJNI()
-
-
Method Details
-
nativeCreate
-
nativePush
private static void nativePush(long[] context, int length) -
nativePull
-
nativeDestroy
private static void nativeDestroy(long[] context) -
nativeAttachDictionary
-
nativePrepareDictionary
-
nativeDestroyDictionary
-
prepareDictionary
Prepares raw or serialized dictionary for being used by encoder.- Parameters:
dictionary- raw / serialized dictionary data; MUST be directsharedDictionaryType- dictionary data type
-