public bool CollectDataFromBinary(BinaryTable table, int index) { BlocksRecord record = GetRecord(table, index); Id = DBCUtil.ExtractInt(table, record.Id, 0); Description = DBCUtil.ExtractString(table, record.Description, ""); Length = DBCUtil.ExtractFloat(table, record.Length, 0); Width = DBCUtil.ExtractFloat(table, record.Width, 0); Res = DBCUtil.ExtractString(table, record.Res, ""); Type = DBCUtil.ExtractInt(table, record.Type, 0); LeftPortType = DBCUtil.ExtractInt(table, record.LeftPortType, 0); LeftOffeset = DBCUtil.ExtractFloatArray(table, record.LeftOffeset, null); RightPortType = DBCUtil.ExtractInt(table, record.RightPortType, 0); RightOffset = DBCUtil.ExtractFloatArray(table, record.RightOffset, null); ForwardPortType = DBCUtil.ExtractInt(table, record.ForwardPortType, 0); ForwardOffset = DBCUtil.ExtractFloatArray(table, record.ForwardOffset, null); BackPortType = DBCUtil.ExtractInt(table, record.BackPortType, 0); BackOffset = DBCUtil.ExtractFloatArray(table, record.BackOffset, null); return(true); }