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