public void SkipObject()
{
var typeId = _reader.ReadVUInt32();
if (typeId == 0)
{
return;
}
if (typeId == 1)
{
var backRefId = _reader.ReadVUInt32();
if (backRefId > _visited.Count) throw new InvalidDataException();
return;
}
if (typeId >= _id2Info.Count)
throw new BtdbMissingMetadataException();
var infoForType = _id2Info[(int)typeId];
if (infoForType.Loader == null)
{
infoForType.Loader = LoaderFactory(infoForType.Descriptor);
}
infoForType.Loader(_reader, this, infoForType.Descriptor);
}