DBWriteBinary()

Description

DBWriteBinary() is used to write binary (type 180) segment data to a GDB data set.

Call Signature

void DBWriteBinary ( int/string filespec, int segment_num, int offset, int size, any ptr buffer )

Return Value

void

This has no return value.

Arguments

int/string filespec:

This can either be the handle returned by DBOpen(), or the name of an open file.

int segment_num:

The segment number containing the binary data to write.

int offset:

The offset within the binary segment to start writing. Use zero to start at the beginning.

int size:

The number of bytes of data to be written.

any ptr buffer:

An array of at least size bytes from which the binary data can be written. The buffer doesn't have be to of type byte, but the size is in terms of bytes.

Remarks

Note that DBWriteBinary() can be used for any segment byte within PCIDSK files, though it is really intended only for use with binary segments. Very few GDB formats implement the binary segment type, which is used (among other things) to store satellite models.

See also

GDB file functions

DBReadBinary()

DBGetBinaryLength()

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.