Beispiel #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);
                }
            }
        }
Beispiel #2
0
 public bool Equals(lws other)
 {
     return(this == other);
 }
Beispiel #3
0
 public static extern unsafe void lws_close_reason(lws wsi, lws_close_status status, byte *buf, size_t len);
Beispiel #4
0
 public static extern int lws_is_final_fragment(lws wsi);
Beispiel #5
0
 public static extern int lws_callback_on_writable(lws wsi);
Beispiel #6
0
 public static extern int lws_frame_is_binary(lws wsi);
Beispiel #7
0
 public static extern lws_context lws_get_context(lws wsi);
Beispiel #8
0
 public static extern unsafe int lws_write(lws wsi, byte *buf, size_t len, lws_write_protocol wp);