public void RaceHeadPart_DanglingMarker() { var frame = new MutagenFrame( new MutagenBinaryReadStream( File.OpenRead(TestDataPathing.RaceHeadPartDanglingMaster), new ParsingBundle( GameRelease.SkyrimSE, new MasterReferenceReader(Constants.Skyrim)))); var headData = GenderedItemBinaryTranslation.ParseMarkerPerItem <HeadData>( frame: frame, maleMarker: RecordTypes.MNAM, femaleMarker: RecordTypes.FNAM, marker: RecordTypes.NAM0, femaleRecordConverter: Race_Registration.HeadDataFemaleConverter, transl: HeadData.TryCreateFromBinary); }
public void RaceHeadPart_DanglingMarker() { byte[] bytes = new byte[] { 0x4E, 0x41, 0x4D, 0x30, 0x00, 0x00, 0x4D, 0x4E, 0x41, 0x4D, 0x00, 0x00, 0x4D, 0x50, 0x41, 0x49, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4D, 0x50, 0x41, 0x56, 0x20, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x4D, 0x50, 0x41, 0x49, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x4D, 0x50, 0x41, 0x56, 0x20, 0x00, 0xFF, 0xFF, 0x1F, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x4D, 0x50, 0x41, 0x49, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x4D, 0x50, 0x41, 0x56, 0x20, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x4D, 0x50, 0x41, 0x49, 0x04, 0x00, 0x03, 0x00, 0x00, 0x00, 0x4D, 0x50, 0x41, 0x56, 0x20, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x46, 0x54, 0x53, 0x4D, 0x04, 0x00, 0x59, 0x32, 0x07, 0x00, 0x46, 0x54, 0x53, 0x4D, 0x04, 0x00, 0x5A, 0x32, 0x07, 0x00, 0x46, 0x54, 0x53, 0x4D, 0x04, 0x00, 0x5B, 0x32, 0x07, 0x00, 0x4E, 0x41, 0x4D, 0x30, 0x00, 0x00, 0x46, 0x4E, 0x41, 0x4D, 0x00, 0x00 }; var frame = new MutagenFrame( new MutagenMemoryReadStream( bytes, new ParsingBundle( GameRelease.SkyrimSE, new MasterReferenceReader(Skyrim.Constants.Skyrim)))); var headData = GenderedItemBinaryTranslation.ParseMarkerPerItem <HeadData>( frame: frame, maleMarker: RecordTypes.MNAM, femaleMarker: RecordTypes.FNAM, marker: RecordTypes.NAM0, femaleRecordConverter: Race_Registration.HeadDataFemaleConverter, transl: HeadData.TryCreateFromBinary); }