예제 #1
0
        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;
        }
예제 #2
0
 public HostInformationData(RecordType recordType)
 {
     _cpu = new CharacterStringData(recordType);
     _os = new CharacterStringData(recordType);
     _recordType = recordType;
 }