public int PopulateFrom(byte[] data, int offset) { int usedBytes = 0; bool done = false; do { CharacterStringData characterString = new CharacterStringData(_recordType); usedBytes += characterString.PopulateFrom(data, offset + usedBytes); if(usedBytes >= (data.Length - offset)) // used up all bytes done = true; } while (!done); return usedBytes; }
public HostInformationData(RecordType recordType) { _cpu = new CharacterStringData(recordType); _os = new CharacterStringData(recordType); _recordType = recordType; }