namespace SabreTools.Data.Models.WiseInstaller.Actions
{
///
/// Read/Write Binary File
///
/// 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.
///
/// This action does not support reading or writing non-ASCII characters (characters with
/// codes above 127).
///
///
/// This action is called through Call DLL Function and is mapped to "f15".
///
///
public class ReadWriteBinaryFile : FunctionData
{
///
/// Flags from the argument data
///
///
/// Encoded as a string, binary representation in script file.
/// Expected flags:
/// - Transfer Direction [0x00 == Read, 0x01 == Write]
/// - Null Terminated (unknown)
///
public byte DataFlags { get; set; }
///
/// Full path to the binary file
///
public string? FilePathname { get; set; }
///
/// Name of the variable
///
public string? VariableName { get; set; }
///
/// Offset in the file to start from
///
/// Encoded as a string
public int FileOffset { get; set; }
///
/// Maximum number of bytes to process
///
/// Encoded as a string
public int MaxLength { get; set; }
}
}