static IntPtr n_FormatMessage_Lorg_jcodec_common_logging_Logger_Message_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Jcodec.Common.Logging.OutLogSink.SimpleFormat __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Logging.OutLogSink.SimpleFormat> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Logging.Logger.Message p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Logging.Logger.Message> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.NewString(__this.FormatMessage(p0)); return(__ret); }
public unsafe void PostMessage(global::Org.Jcodec.Common.Logging.Logger.Message p0) { if (id_postMessage_Lorg_jcodec_common_logging_Logger_Message_ == IntPtr.Zero) { id_postMessage_Lorg_jcodec_common_logging_Logger_Message_ = JNIEnv.GetMethodID(class_ref, "postMessage", "(Lorg/jcodec/common/logging/Logger$Message;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_postMessage_Lorg_jcodec_common_logging_Logger_Message_, __args); }
public unsafe string FormatMessage(global::Org.Jcodec.Common.Logging.Logger.Message p0) { if (id_formatMessage_Lorg_jcodec_common_logging_Logger_Message_ == IntPtr.Zero) { id_formatMessage_Lorg_jcodec_common_logging_Logger_Message_ = JNIEnv.GetMethodID(class_ref, "formatMessage", "(Lorg/jcodec/common/logging/Logger$Message;)Ljava/lang/String;"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); string __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_formatMessage_Lorg_jcodec_common_logging_Logger_Message_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); }
public virtual unsafe void PostMessage(global::Org.Jcodec.Common.Logging.Logger.Message p0) { if (id_postMessage_Lorg_jcodec_common_logging_Logger_Message_ == IntPtr.Zero) { id_postMessage_Lorg_jcodec_common_logging_Logger_Message_ = JNIEnv.GetMethodID(class_ref, "postMessage", "(Lorg/jcodec/common/logging/Logger$Message;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_postMessage_Lorg_jcodec_common_logging_Logger_Message_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "postMessage", "(Lorg/jcodec/common/logging/Logger$Message;)V"), __args); } } finally { } }
public virtual unsafe string FormatMessage(global::Org.Jcodec.Common.Logging.Logger.Message p0) { if (id_formatMessage_Lorg_jcodec_common_logging_Logger_Message_ == IntPtr.Zero) { id_formatMessage_Lorg_jcodec_common_logging_Logger_Message_ = JNIEnv.GetMethodID(class_ref, "formatMessage", "(Lorg/jcodec/common/logging/Logger$Message;)Ljava/lang/String;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); string __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_formatMessage_Lorg_jcodec_common_logging_Logger_Message_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = JNIEnv.GetString(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "formatMessage", "(Lorg/jcodec/common/logging/Logger$Message;)Ljava/lang/String;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
static IntPtr n_GetMessage(IntPtr jnienv, IntPtr native__this) { global::Org.Jcodec.Common.Logging.Logger.Message __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Logging.Logger.Message> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.NewString(__this.GetMessage())); }
static int n_GetLineNumber(IntPtr jnienv, IntPtr native__this) { global::Org.Jcodec.Common.Logging.Logger.Message __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Logging.Logger.Message> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.LineNumber); }
static void n_PostMessage_Lorg_jcodec_common_logging_Logger_Message_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Jcodec.Common.Logging.Logger.ILogSink __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Logging.Logger.ILogSink> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Logging.Logger.Message p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Logging.Logger.Message> (native_p0, JniHandleOwnership.DoNotTransfer); __this.PostMessage(p0); }