internal static extern bool ffi_context_take(ContextHandler ptr, Action <UInt16, IntPtr, UInt32> callback);
internal static extern bool ffi_context_push(ContextHandler ptr, UInt16 kind, byte[] buffer, UInt32 len);