public override unsafe void Export(string outPath) { int dataLen = OnCalculateSize(true); using (FileStream stream = new FileStream(outPath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None, 8, FileOptions.RandomAccess)) { stream.SetLength(dataLen); using (FileMap map = FileMap.FromStream(stream)) AnimationConverter.EncodeSRT0Keyframes(Keyframes, map.Address, map.Address + _entryLen, _code); } }
public override void OnRebuild(VoidPtr address, int length, bool force) { AnimationConverter.EncodeSRT0Keyframes(_keyframes, address, _dataAddr, _code); }
protected internal override void OnRebuild(VoidPtr address, int length, bool force) { AnimationConverter.EncodeSRT0Keyframes(_keyframes, address, _dataAddr); }