Пример #1
0
            internal override IEnumerable <byte> Encode()
            {
                (int a, int i) = DeltaEncoder.EncodeLld(mLld);
                yield return((byte)(0b00000100 | (a << 4)));

                yield return((byte)(0b00000000 | (i << 0)));
            }
Пример #2
0
            internal override IEnumerable <byte> Encode()
            {
                int nd = DeltaEncoder.EncodeNd(mNd);

                yield return((byte)(0b00000101 | (nd << 3)));

                yield return((byte)(0b00000000 | (mM << 0)));
            }
Пример #3
0
            internal override IEnumerable <byte> Encode()
            {
                (int a1, int i1) = DeltaEncoder.EncodeSld(mSld1);
                (int a2, int i2) = DeltaEncoder.EncodeSld(mSld2);
                yield return((byte)(0b00001100 | (a1 << 4) | (a2 << 6)));

                yield return((byte)(0b00000000 | (i1 << 0) | (i2 << 4)));
            }