xz_setextrafield.vi

Overwrites the extra-field data of the gz-header from xfield.

if xfield is empty xf_len returns the size of the extra-field otherwise xfield returns the no. of bytes written.

Returns Z_STREAM_ERROR on errors or Z_OK.

To use this vi the file must be opened with Mode:

"r+b", "wb" or "w+b"


Connector Pane

xz_setextrafield.vi


Controls and Indicators

cdlrn

file/in

"gz" filehandle from xzopen.

cstr

xfield

If xfield is empty, xf_len returns the size of the extra-field in the gz-header, otherwise xfield will be copiied into the extra-field and xf_len returns the no. of bytes written.

ii32

Result

idlrn

file/out

iu16

xf_len

If xfield is empty, xf_len returns the size of the extra-field in the gz-header, otherwise xfield will be copiied into the extra-field and xf_len returns the no. of bytes written.