Exemple #1
0
        // Token: 0x060000B9 RID: 185 RVA: 0x000036E0 File Offset: 0x000018E0
        public override void ToStream(Stream stream)
        {
            bool          flag          = this.type == SystemExclusiveEventType.Normal || this.type == SystemExclusiveEventType.Terminating;
            ABinaryWriter abinaryWriter = new ABinaryWriter(stream, Endianness.Big);

            abinaryWriter.WriteUIntVar(base.DeltaTime);
            if (this.type == SystemExclusiveEventType.Normal)
            {
                abinaryWriter.Write8(240);
            }
            else
            {
                abinaryWriter.Write8(247);
            }
            abinaryWriter.WriteUIntVar((ulong)((long)((flag ? (this.data.Length + 1) : this.data.Length) + (this.HasWideManufacturerID ? 3 : 1))));
            if (this.HasWideManufacturerID)
            {
                abinaryWriter.Write8(0);
                abinaryWriter.Write16((ushort)this.manufacturerID);
            }
            else
            {
                abinaryWriter.Write8((byte)(this.manufacturerID >> 16));
            }
            abinaryWriter.Write8s(this.data);
            if (flag)
            {
                abinaryWriter.Write8(247);
            }
        }
Exemple #2
0
        // Token: 0x0600005E RID: 94 RVA: 0x00002D94 File Offset: 0x00000F94
        public override void ToStream(Stream stream)
        {
            ABinaryWriter abinaryWriter = new ABinaryWriter(stream, Endianness.Big);

            abinaryWriter.WriteUIntVar(base.DeltaTime);
            abinaryWriter.Write8(byte.MaxValue);
            abinaryWriter.Write8((byte)this.Type);
            abinaryWriter.WriteUIntVar((ulong)((long)this.text.Length));
            abinaryWriter.WriteString(this.text);
        }
        // Token: 0x060000A7 RID: 167 RVA: 0x00003484 File Offset: 0x00001684
        public override void ToStream(Stream stream)
        {
            ABinaryWriter abinaryWriter = new ABinaryWriter(stream, Endianness.Big);

            abinaryWriter.WriteUIntVar(base.DeltaTime);
            abinaryWriter.Write8(byte.MaxValue);
            abinaryWriter.Write8((byte)this.Type);
            abinaryWriter.Write8(0);
        }
        // Token: 0x0600008B RID: 139 RVA: 0x000031D0 File Offset: 0x000013D0
        public override void ToStream(Stream stream)
        {
            ABinaryWriter abinaryWriter = new ABinaryWriter(stream, Endianness.Big);

            abinaryWriter.WriteUIntVar(base.DeltaTime);
            abinaryWriter.Write8(byte.MaxValue);
            abinaryWriter.Write8((byte)this.Type);
            abinaryWriter.Write8(2);
            abinaryWriter.Write16((ushort)this.sequenceNumber);
        }
        // Token: 0x06000084 RID: 132 RVA: 0x000030DC File Offset: 0x000012DC
        public override void ToStream(Stream stream)
        {
            ABinaryWriter abinaryWriter = new ABinaryWriter(stream, Endianness.Big);

            abinaryWriter.WriteUIntVar(base.DeltaTime);
            abinaryWriter.Write8(byte.MaxValue);
            abinaryWriter.Write8((byte)this.Type);
            abinaryWriter.WriteUIntVar((ulong)((long)(this.data.Length + (this.HasWideManufacturerID ? 3 : 1))));
            if (this.HasWideManufacturerID)
            {
                abinaryWriter.Write8(0);
                abinaryWriter.Write16((ushort)this.manufacturerID);
            }
            else
            {
                abinaryWriter.Write8((byte)(this.manufacturerID >> 16));
            }
            abinaryWriter.Write8s(this.data);
        }
Exemple #6
0
        // Token: 0x06000020 RID: 32 RVA: 0x00002708 File Offset: 0x00000908
        public override void ToStream(Stream stream, bool runningStatus)
        {
            ABinaryWriter abinaryWriter = new ABinaryWriter(stream, Endianness.Big);

            abinaryWriter.WriteUIntVar(base.DeltaTime);
            if (runningStatus)
            {
                abinaryWriter.Write8((byte)((int)this.Type | base.ChannelNumber));
            }
            abinaryWriter.Write8((byte)this.programNumber);
        }
        // Token: 0x06000097 RID: 151 RVA: 0x00003374 File Offset: 0x00001574
        public override void ToStream(Stream stream)
        {
            ABinaryWriter abinaryWriter = new ABinaryWriter(stream, Endianness.Big);

            abinaryWriter.WriteUIntVar(base.DeltaTime);
            abinaryWriter.Write8(byte.MaxValue);
            abinaryWriter.Write8((byte)this.Type);
            abinaryWriter.Write8(4);
            abinaryWriter.Write8((byte)this.numerator);
            abinaryWriter.Write8((byte)this.denominatorLogarithm);
            abinaryWriter.Write8((byte)this.ticksPerMetronomeClick);
            abinaryWriter.Write8((byte)this.thirtySecondNotesPerQuarterNote);
        }