示例#1
0
 public void midiJackMessage(System.Int32 deviceIndex, System.SByte status, System.SByte data1, System.SByte data2)
 {
     if (DroidMidiEvent != null)
     {
         DroidMidiEvent(this, new MidiMessage((uint)deviceIndex, (byte)status, (byte)data1, (byte)data2));
     }
 }
示例#2
0
        public static bool _Write_System_IO_BinaryWriter_System_SByte( )
        {
            //Parameters
            System.SByte _value = null;


            //Exception
            Exception exception_Real        = null;
            Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnValue_Real = System.IO.BinaryWriter.Write(_value);
            }

            catch (Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnValue_Intercepted = System.IO.BinaryWriter.Write(_value);
            }

            catch (Exception e)
            {
                exception_Intercepted = e;
            }
        }
示例#3
0
 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     data = (System.SByte)serialized[curIndex];
     curIndex++;
     return (curIndex - startIndex);
 }
示例#4
0
 public void RPC_Say(RPC.PackageWriter pkg, System.SByte channel, System.String msg, RPC.DataWriter hyperlink)
 {
     pkg.Write(channel);
     pkg.Write(msg);
     pkg.Write(hyperlink);
     pkg.SetMethod(69);
 }
示例#5
0
        public void SessionAbortedByPartner(
            BOOLEAN isInbound,
            NativeReliableMessaging.IFabricReliableSessionPartitionIdentity partitionId,
            NativeReliableMessaging.IFabricReliableSession session)
        {
            var closingSession = ReliableMessagingSession.FromNative(session);

            var nativeSvcName = partitionId.getServiceName();
            var svcInstance   = NativeTypes.FromNativeUri(nativeSvcName);

            var partitionKeyType = partitionId.getPartitionKeyType();
            var partitionKey     = partitionId.getPartitionKey();

            if (partitionKeyType == NativeTypes.FABRIC_PARTITION_KEY_TYPE.FABRIC_PARTITION_KEY_TYPE_NONE)
            {
                this.managedCallback.SessionAbortedByPartner(NativeTypes.FromBOOLEAN(isInbound), svcInstance, closingSession);
            }
            else if (partitionKeyType == NativeTypes.FABRIC_PARTITION_KEY_TYPE.FABRIC_PARTITION_KEY_TYPE_INT64)
            {
                var int64KeyRange = IntegerPartitionKeyRangeFactory.FromNative(partitionKey);
                this.managedCallback.SessionAbortedByPartner(NativeTypes.FromBOOLEAN(isInbound), svcInstance, int64KeyRange, closingSession);
            }
            else if (partitionKeyType == NativeTypes.FABRIC_PARTITION_KEY_TYPE.FABRIC_PARTITION_KEY_TYPE_STRING)
            {
                this.managedCallback.SessionAbortedByPartner(
                    NativeTypes.FromBOOLEAN(isInbound),
                    svcInstance,
                    NativeTypes.FromNativeString(partitionKey),
                    closingSession);
            }
        }
示例#6
0
 public void RPC_AddTalkMsg(RPC.PackageWriter pkg, System.SByte channel, System.String sender, System.String msg, RPC.DataWriter hyperlink)
 {
     pkg.Write(channel);
     pkg.Write(sender);
     pkg.Write(msg);
     pkg.Write(hyperlink);
     pkg.SetMethod(7);
 }
示例#7
0
 unsafe public static void PutInt8(Int8 x, byte[] b, int pos)
 {
     Debug.Assert(b.Length - pos >= sizeof(Int8));
     fixed(byte *sb = b)
     {
         *((Int8 *)(sb + pos)) = x;
     }
 }
示例#8
0
 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     status = (System.SByte)serialized[curIndex];
     curIndex++;
     service = BitConverter.ToUInt16(serialized, curIndex);
     curIndex += BitConverter.GetBytes(service).Length;
     return (curIndex - startIndex);
 }
        void NativeContainerActivatorService.IFabricContainerActivatorService.StartEventMonitoring(
            BOOLEAN isContainerServiceManaged,
            UInt64 sinceTime)
        {
            var isManaged = NativeTypes.FromBOOLEAN(isContainerServiceManaged);

            Utility.WrapNativeSyncMethodImplementation(
                () => this.activatorService.StartEventMonitoring(isManaged, sinceTime),
                "FabricContainerActivatorServiceBroker.StartEventMonitoring",
                ValidateAsyncApi);
        }
示例#10
0
 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     curIndex += layout.Deserialize(serialized, curIndex);
     System.UInt32 data_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(data_len).Length;
     System.SByte[] temp = new System.SByte[data_len];
     Array.Copy(serialized, curIndex, temp, 0, data_len);
     data = temp.ToList();
     curIndex += (int)data_len;
     return (curIndex - startIndex);
 }
        public static bool _ToSByte_System_String( )
        {
            //Parameters
            System.String s = null;

            //ReturnType/Value
            System.SByte returnVal_Real        = null;
            System.SByte returnVal_Intercepted = null;

            //Exception
            Exception exception_Real        = null;
            Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnValue_Real = System.Xml.XmlConvert.ToSByte(s);
            }

            catch (Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnValue_Intercepted = System.Xml.XmlConvert.ToSByte(s);
            }

            catch (Exception e)
            {
                exception_Intercepted = e;
            }


            Return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
示例#12
0
 public static System.SByte Read(ref System.SByte location) => throw null;
示例#13
0
 public static void Write(ref System.SByte location, System.SByte value) => throw null;
示例#14
0
 public void DelItem(RPC.PackageWriter pkg, System.UInt64 roleId, System.UInt64 itemId, System.SByte bDestroy)
 {
     pkg.Write(roleId);
     pkg.Write(itemId);
     pkg.Write(bDestroy);
     pkg.SetMethod(10);
 }
示例#15
0
#pragma warning restore 649

        public bool Equals(System.SByte i)
        {
            return(i == Value);
        }
示例#16
0
 /** 設定。
  */
 public void Reset(System.SByte a_raw)
 {
     this.valuetype = ValueType.SignedNumber;
     this.raw       = (SIGNED_NUMBER_TYPE)a_raw;
 }
示例#17
0
 public void DisconnectPlayer(RPC.PackageWriter pkg, System.UInt64 accountId, System.SByte serverType)
 {
     pkg.Write(accountId);
     pkg.Write(serverType);
     pkg.SetMethod(16);
 }
 public static string Hex(System.SByte Number)
 {
 }
 public virtual void Write(System.SByte value)
 {
 }
示例#20
0
 public IndentedStringBuilder Insert(System.Int32 index, System.SByte value)
 {
     _inner.Insert(index, value);
     return(this);
 }
 public void AddValue(string name, System.SByte value)
 {
 }
示例#22
0
 public IndentedStringBuilder Append(System.SByte value)
 {
     AppendIndent();
     _inner.Append(value);
     return(this);
 }
示例#23
0
 public NavSatStatus()
 {
     status = 0;
     service = 0;
 }
示例#24
0
 public static System.SByte VolatileRead(System.SByte& address)
 {
 }
示例#25
0
 /** 値設定。
  *
  *      -128 -- 127
  *
  */
 public void SetSbyte(System.SByte a_value)
 {
     this.jsonstring = null;
     this.value.Reset(a_value);
 }
 public static string Oct(System.SByte Number)
 {
 }
示例#27
0
 public Int8()
 {
     data = 0;
 }
示例#28
0
 public void Emit(System.Reflection.Emit.OpCode opcode, System.SByte arg) => throw null;
示例#29
0
 private static bool is_integer(bytechar c)
 {
     return(c >= (bytechar)'0' && c <= (bytechar)'9');
     // this gets compiled to (uint8_t)(c - '0') <= 9 on all decent compilers
     //return (uint8_t) (c - '0') <= 9;
 }
 public StringBuilder Insert(int index, System.SByte value)
 {
 }
示例#31
0
 public void LogoutAccount(RPC.PackageWriter pkg, System.UInt64 accountId, System.SByte serverType)
 {
     pkg.Write(accountId);
     pkg.Write(serverType);
     pkg.SetMethod(3);
 }
 public StringBuilder Append(System.SByte value)
 {
 }
示例#33
0
 public void RPC_DSTalkMsg(RPC.PackageWriter pkg, System.UInt64 planesId, System.String sender, System.SByte channel, System.UInt64 targetId, System.String msg, RPC.DataWriter hyperlink)
 {
     pkg.Write(planesId);
     pkg.Write(sender);
     pkg.Write(channel);
     pkg.Write(targetId);
     pkg.Write(msg);
     pkg.Write(hyperlink);
     pkg.SetMethod(12);
 }
 public static int Len(System.SByte Expression)
 {
 }
示例#35
0
文件: Punning.cs 项目: pszmyd/SHS
 public static unsafe void PutInt8(Int8 x, byte[] b, int pos)
 {
     Debug.Assert(b.Length - pos  >= sizeof(Int8));
       fixed (byte* sb = b) {
     *((Int8*)(sb + pos)) = x;
       }
 }
示例#36
0
 public static void VolatileWrite(System.SByte& address, System.SByte value)
 {
 }