/// <summary>
        /// Imports the contents of a GUID stream and indexes all present GUIDs.
        /// </summary>
        /// <param name="stream">The stream to import.</param>
        public void ImportStream(GuidStream stream)
        {
            uint index = 1;

            while (index < stream.GetPhysicalSize() / GuidStream.GuidSize + 1)
            {
                var  guid     = stream.GetGuidByIndex(index);
                uint newIndex = AppendGuid(guid);
                _guids[guid] = newIndex;

                index++;
            }
        }
示例#2
0
 public void IndexZeroGivesZeroGuid()
 {
     Assert.Equal(Guid.Empty, _guidStream.GetGuidByIndex(0));
 }