public static int Ebml_Read_Id(this BinaryReader reader, int maxSize, out ulong number) { int read = reader.Ebml_Read_Num(maxSize, out number); if (read >= 0) number |= 1UL << 7*read; return read; }