int Write(const UByte * pbuffer, int numBytes);
Write writes in the given number of bytes or less to the stream.
Parameters |
Description |
int numBytes |
Number of bytes to be written. |
pbufer |
Pointer to the buffer to write to. |
An int value containing the number of bytes written, -1 for error. If 0 or < numBytes , no more bytes available; end of file or the other side of stream is closed.