readString

private fnstring readString(const(ubyte) * field, size_t length) pure

Read a null-terminated string from a TAR header field.

Parameters

fieldPointer to the field bytes.
lengthLength of the field.

Returns

The decoded string with trailing nulls/spaces stripped.