Lawo.EmberPlusSharp.Ember.EmberWriter.GetLeadingOctet C# (CSharp) Method

GetLeadingOctet() private static method

private static GetLeadingOctet ( EmberId emberId, int bits ) : byte
emberId EmberId
bits int
return byte
        private static byte GetLeadingOctet(EmberId emberId, int bits)
        {
            const int PrimitiveFlag = 0x00;
            const int ConstructedFlag = 0x20;

            return (byte)((int)emberId.Class | (emberId.IsConstructed ? ConstructedFlag : PrimitiveFlag) | bits);
        }