/**Serialize the object into a byte array
*/
byte[] write();
+ /**Return a human-readable "debug" string describing this object
+ */
+ string debug_str();
}
/**
long result = InternalUtils.encodeUint8Array(ret);
return result;
}
+ public long debug_str() {
+ string ret = arg.debug_str();
+ GC.KeepAlive(arg);
+ long result = InternalUtils.encodeString(ret);
+ return result;
+ }
}
/** Creates a new instance of OnionMessageContents from a given implementation */
return ret_conv;
}
+ /**
+ * Return a human-readable "debug" string describing this object
+ */
+ public string debug_str() {
+ long ret = bindings.OnionMessageContents_debug_str(this.ptr);
+ GC.KeepAlive(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ string ret_conv = InternalUtils.decodeString(ret);
+ return ret_conv;
+ }
+
internal long clone_ptr() {
long ret = bindings.OnionMessageContents_clone_ptr(this.ptr);
GC.KeepAlive(this);