SONGETEXTRADATA reads or writes the extra data area of a SON file
[ERR, BUFFER]=SONGETEXTRADATA(FH, N, DATATYPE, BYTEOFFSET, FLAG)
or
ERR=SONGETEXTRADATA(FH, BUFFER, BYTEOFFSET, FLAG)
INPUTS: FH the SON file handle
N the number of items to read
DATATYPE string class descriptor for the read
BYTEOFFSET the offset from the start of the data area
BUFFER the data to write
FLAG 0 to read and 1 to write data
OUTPUTS ERR= 0 if OK or a negative error
BUFFER the output data for a read
e.g. [err data]=SONGetExtraData(fh, 100, 'int32', 64, 0)
reads 100 32-bit integer values from the data area starting 64 bytes into
the area
Author:Malcolm Lidierth
Matlab SON library:
Copyright © The Author & King's College London 2005-2006