mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add notes around GetFileStream
This commit is contained in:
@@ -745,6 +745,8 @@ namespace SabreTools.DatTools
|
|||||||
BaseArchive? archive = BaseArchive.Create(file);
|
BaseArchive? archive = BaseArchive.Create(file);
|
||||||
if (archive != null)
|
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>();
|
ItemType itemType = datItem.GetStringFieldValue(Models.Metadata.DatItem.TypeKey).AsEnumValue<ItemType>();
|
||||||
(stream, _) = archive.GetEntryStream(datItem.GetName() ?? itemType.AsStringValue() ?? string.Empty);
|
(stream, _) = archive.GetEntryStream(datItem.GetName() ?? itemType.AsStringValue() ?? string.Empty);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user