SolFSStream.Write method
Filter:
Pascal DLL C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Use this method to write the block of data to stream.
Declaration
[Pascal]
function Write(const Buffer; Count: LongInt): LongInt;
[DLL]
long _stdcall StorageWriteFile(unsigned long File, void* Buffer,
long BufferSize, long *Written);
[C++ (DLL/Lib)]
unsigned long Write(const void *Buffer, unsigned long Count);
[C++ (VCL)]
virtual int __fastcall Write(const void *Buffer, int Count);
[C++ (.NET)]
void Write(__in unsigned char* buffer __gc[], int offset, int count)
[C#]
void Write(byte[] buffer, int offset, int count)
[VB.NET]
Sub Write(ByVal buffer() As Byte, ByVal offset As Integer, ByVal count As Integer)
Parameters
- Buffer - buffer from which bytes are written.
- Count - maximum number of bytes to be written.
- Offset - offset in the buffer from which it is used.
- [DLL] File - handle to the file returned by Create function.
- [DLL] BufferSize - maximum number of bytes to be written.
- [DLL] Written - returns number of bytes actually written.
Return value
Number of bytes actually written.
[DLL] 0 if the function succeeded or one of Error codes if the function failed.
Description
Write attempts to write up to Count bytes from Buffer, and returns the number of bytes actually written. Writing is done at current position of the file pointer, which is identified with Position property and adjustable using Seek method.
