Discuss this help topic in SecureBlackbox Forum

TElCustomFileSystemAdapter.FileWrite

TElCustomFileSystemAdapter     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Writes a block of bytes to the specified file.

Declaration

[C#]
    int FileWrite(Object FileHandle, byte[] Buffer, int Index, int Size, ref int ErrorCode);

[VB.NET]
    Function FileWrite(ByVal FileHandle As Object, ByVal Buffer As Byte(), ByVal Index As Integer, ByVal Size As Integer, ByRef ErrorCode As Integer) As Integer

[Pascal]
    function FileWrite(FileHandle : TObject; Buffer : ByteArray; Index, Size : integer) : integer; virtual; abstract;

[C++]
    int32_t FileWrite(TObject &FileHandle, const std::vector<uint8_t> &Buffer, int32_t Index, int32_t Size, int32_t &ErrorCode);
    int32_t FileWrite(TObject *FileHandle, const std::vector<uint8_t> &Buffer, int32_t Index, int32_t Size, int32_t &ErrorCode);

[PHP]
    integer FileWrite(TObject $FileHandle, array of byte|string|NULL $Buffer, integer $Index, integer $Size, integer &$ErrorCode)

[Java]
    int fileWrite(TObject arg0, byte[] arg1, int arg2, int arg3, TSBInteger arg4);

Parameters

  • FileHandle - the handle to the file where to write the data.
  • Buffer - buffer containing the data to be written.
  • Index - the byte offset of the data to be written in the Buffer.
  • Size - the maximum number of bytes to write.
  • ErrorCode -

Return value

    Returns a VFS error code.

Possible values:

Description

    Call this method to write data to the file.

See also:     FileOpen     FileRead    

Discuss this help topic in SecureBlackbox Forum