mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-26 08:10:08 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
53 lines
1.8 KiB
C#
53 lines
1.8 KiB
C#
namespace SabreTools.Data.Models.WiseInstaller.Actions
|
|
{
|
|
/// <summary>
|
|
/// 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).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This action is called through Call DLL Function and is mapped to "f15".
|
|
/// </remarks>
|
|
/// <see href="https://www.manualslib.com/manual/404969/Symantec-Wisescript-Editor-8-0-Reference-For-Wise-Package-Studio-V1-0.html"/>
|
|
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; }
|
|
}
|
|
}
|