Files
SabreTools.Serialization/SabreTools.Data.Models/WiseInstaller/Actions/ReadWriteBinaryFile.cs

53 lines
1.8 KiB
C#
Raw Normal View History

2025-09-26 13:06:18 -04:00
namespace SabreTools.Data.Models.WiseInstaller.Actions
2025-09-26 12:09:34 -04:00
{
/// <summary>
/// Read/Write Binary File
2025-10-30 23:54:22 -04:00
///
2025-09-26 12:09:34 -04:00
/// This action reads from a binary file to a variable, or writes from a variable to a binary
/// file. If you write to the file, the existing information in the file is not moved, it is
/// overwritten.
2025-10-30 23:54:22 -04:00
///
2025-09-26 12:09:34 -04:00
/// This action does not support reading or writing non-ASCII characters (characters with
/// codes above 127).
/// </summary>
/// <remarks>
/// This action is called through Call DLL Function and is mapped to "f15".
/// </remarks>
2025-10-30 23:54:22 -04:00
/// <see href="https://www.manualslib.com/manual/404969/Symantec-Wisescript-Editor-8-0-Reference-For-Wise-Package-Studio-V1-0.html"/>
2025-09-26 12:09:34 -04:00
public class ReadWriteBinaryFile : FunctionData
{
/// <summary>
/// Flags from the argument data
/// </summary>
/// <remarks>
/// Encoded as a string, binary representation in script file.
/// Expected flags:
/// - Transfer Direction [0x00 == Read, 0x01 == Write]
/// - Null Terminated (unknown)
/// </remarks>
public byte DataFlags { get; set; }
/// <summary>
/// Full path to the binary file
/// </summary>
public string? FilePathname { get; set; }
/// <summary>
/// Name of the variable
/// </summary>
public string? VariableName { get; set; }
/// <summary>
/// Offset in the file to start from
/// </summary>
/// <remarks>Encoded as a string</remarks>
public int FileOffset { get; set; }
/// <summary>
/// Maximum number of bytes to process
/// </summary>
/// <remarks>Encoded as a string</remarks>
public int MaxLength { get; set; }
}
2025-10-30 23:54:22 -04:00
}