예제 #1
0
        public static void lws_close_reason(lws wsi, lws_close_status status, string buf)
        {
            var bytes = QuickJS.Utils.TextUtils.GetNullTerminatedBytes(buf);

            unsafe
            {
                fixed(byte *pointer = bytes)
                {
                    lws_close_reason(wsi, status, pointer, bytes.Length - 1);
                }
            }
        }
예제 #2
0
 public bool Equals(lws other)
 {
     return(this == other);
 }
예제 #3
0
 public static extern unsafe void lws_close_reason(lws wsi, lws_close_status status, byte *buf, size_t len);
예제 #4
0
 public static extern int lws_is_final_fragment(lws wsi);
예제 #5
0
 public static extern int lws_callback_on_writable(lws wsi);
예제 #6
0
 public static extern int lws_frame_is_binary(lws wsi);
예제 #7
0
 public static extern lws_context lws_get_context(lws wsi);
예제 #8
0
 public static extern unsafe int lws_write(lws wsi, byte *buf, size_t len, lws_write_protocol wp);