Struct OpenFileHeader
Open a file for reading and/or writing
Inherited Members
Namespace: DuetControlServer.SPI.Communication.FirmwareRequests
Assembly: DuetControlServer.dll
Syntax
public struct OpenFileHeader
Fields
Append
If the file is opened for writing, this may specify if content is supposed to be appended
Declaration
public byte Append
Field Value
| Type | Description |
|---|---|
| byte |
FilenameLength
Length of the following filename
Declaration
public byte FilenameLength
Field Value
| Type | Description |
|---|---|
| byte |
ForWriting
Open the given file for writing. May be set to false to open a file in read-only mode
Declaration
public byte ForWriting
Field Value
| Type | Description |
|---|---|
| byte |
PreAllocSize
If the file is opened for writing, this may specify how many bytes may be preallocated for the file
Declaration
public uint PreAllocSize
Field Value
| Type | Description |
|---|---|
| uint |