示例#1
0
        public byte[] Negate(byte[] a)
        {
            int64_t _a = new int64_t(a);

            int64_t result = -_a;

            byte[] r = result.ToBinary();
            byte[] values;

            values = new byte[a.Length];

            Array.Copy(r, values, values.Length);

            flags = ALUFlags.None;
            return(values);
        }
示例#2
0
 public void deserialize(BinaryReader reader)
 {
     {
         ushort size = reader.ReadUInt16();
         this.health_values.Clear();
         for (int i = 0; i < size; ++i)
         {
             this.health_values.Add(reader.ReadSingle());
         }
     }
     if (reader.ReadBoolean())
     {
         target = new Upper();
         target.deserialize(reader);
     }
     {
         ushort size = reader.ReadUInt16();
         this.peeps.Clear();
         for (int i = 0; i < size; ++i)
         {
             Test element = new Test();
             element.deserialize(reader);
             this.peeps.Add(element);
         }
     }
     hoho     = reader.ReadInt32();
     muh_dick = reader.ReadInt64();
     {
         ushort size = reader.ReadUInt16();
         this.testero.Clear();
         for (int i = 0; i < size; ++i)
         {
             Upper element = new Upper();
             element.deserialize(reader);
             this.testero.Add(element);
         }
     }
 }
示例#3
0
 public static extern int JS_ToBigInt64(JSContext ctx, out int64_t pres, JSValueConst val);
示例#4
0
 public static extern void obs_data_set_int(obs_data_t data,
                                            [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8StringMarshaler))] string name, int64_t val);
示例#5
0
 public static extern int JS_SetPropertyInt64(JSContext ctx, JSValueConst this_obj, int64_t idx, JSValue val);
示例#6
0
 public static extern JSValue JS_NewBigInt64(JSContext ctx, int64_t v);
示例#7
0
 public static extern JSValue JSB_NewInt64(JSContext ctx, int64_t val);
示例#8
0
 public extern static void mbResponseQuery(mbWebView webView, int64_t queryId, int customMsg, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Tnelab.MiniBlinkV.Utf8Marshaler))] utf8 response);
示例#9
0
 public static extern void obs_source_set_sync_offset(obs_source_t source, int64_t offset);