| synopsis || return value || arguments || prev || next |

kdu_compressed_target::write

Java: Kdu_compressed_target::Write

virtual bool write( const kdu_byte * buf, int num_bytes)

Java: boolean Write( byte[] buf, int num_bytes)

[Declared in "../coresys/common/kdu_compressed.h"]

Go to class description.


Synopsis

This function must be implemented in every derived class. It implements the functionality of a sequential write operation, transferring num_bytes bytes from the supplied buffer to the target.

The system provides its own internal temporary buffering for compressed data to maximize internal access efficiency. For this reason, the virtual write function defined here will usually be called to transfer quite a few bytes at a time.


Return Value

The function returns true unless the transfer could not be completed for some reason, in which case it returns false.

Arguments

buf [const kdu_byte *]

num_bytes [int]


| top || synopsis || return value || arguments || prev || next |