/// <summary> /// Writes fields from the given imageflow_json_response to the locations referenced. /// </summary> /// <param name="context"></param> /// <param name="response_in"></param> /// <param name="status_code_out"></param> /// <param name="buffer"></param> /// <returns></returns> /// <exception cref="BufferOverflowException"></exception> public static bool imageflow_json_response_read(ContextPointer context, JsonResponsePointer response_in, out long status_code_out, out JsonReader buffer) { IntPtr bufferPointer; IntPtr bufferSize; bool result = imageflow_json_response_read(context, response_in, out status_code_out, out bufferPointer, out bufferSize); if (!result) { buffer = null; return(false); } #pragma warning disable HeapAnalyzerExplicitNewObjectRule // Explicit new reference type allocation buffer = new UnmanagedJsonReader(bufferPointer, bufferSize.ToInt64()); #pragma warning restore HeapAnalyzerExplicitNewObjectRule // Explicit new reference type allocation return(true); }
public static extern bool imageflow_json_response_destroy(ContextPointer context, JsonResponsePointer response);
private static extern bool imageflow_json_response_read(ContextPointer context, JsonResponsePointer response_in, out long status_code_out, [Out] out IntPtr buffer_utf8_no_nulls_out, [Out] out IntPtr buffer_size_out);