void ReadName(ObjectData obj) { byte entry; var name = new List<byte>(); while ((entry = _reader.ReadByte()) != 0) { name.Add(entry); } obj.Name = name.ToArray(); }