uncompressedSize: get size of uncompressed .gz file from 4-byte footer

uncompressedSizeR Documentation

get size of uncompressed .gz file from 4-byte footer

Description

get size of uncompressed .gz file from 4-byte footer

Usage

uncompressedSize(gzfile)

Arguments

gzfile

character scalar filename

Value

the signed integer taken from the last 4 bytes of the file (little-endian). This only represents the size of the last complete gz stream in the file, and if the file does nto end with a completed gz stream, then the value returned by this function is invalid.

i.e. this function's return value is only valid if compressedFileDone(gzfile) == TRUE


MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.