Add notes around GetFileStream

This commit is contained in:
Matt Nadareski
2024-07-15 21:39:25 -04:00
parent 8af80b79af
commit 0e97b2025a

View File

@@ -745,6 +745,8 @@ namespace SabreTools.DatTools
BaseArchive? archive = BaseArchive.Create(file);
if (archive != null)
{
// TODO: Write entry to a temporary file to avoid over-large in-memory streams
// TODO: Once entry is written, replace GetEntryStream implementations
ItemType itemType = datItem.GetStringFieldValue(Models.Metadata.DatItem.TypeKey).AsEnumValue<ItemType>();
(stream, _) = archive.GetEntryStream(datItem.GetName() ?? itemType.AsStringValue() ?? string.Empty);
}