Esempio n. 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);
                }
            }
        }
Esempio n. 2
0
 public static extern unsafe void lws_close_reason(lws wsi, lws_close_status status, byte *buf, size_t len);