ADBaseLibrary.Matroska.MatroskaExtensions.Ebml_Read_Length C# (CSharp) Method

Ebml_Read_Length() public static method

public static Ebml_Read_Length ( this reader, ulong &number ) : int
reader this
number ulong
return int
        public static int Ebml_Read_Length(this BinaryReader reader, out ulong number)
        {
            int res = Ebml_Read_Num(reader, 8, out number);
            if (res > 0 && number + 1 == 1UL << (7 * res))
                number = 0xffffffffffffffUL;
            return res;
        }