Split validateRecord to allow validating header and data separately
Summary: Split validateRecord to allow validating header and data separately. This is useful when the header is used while storing records on storage devices. Validating header alone before validating the record helps avoiding unnecessary device reads. It also helps avoiding unnecessary memory allocations while trying to read invalid dataLength bytes present in an invalid header. Reviewed By: yfeldblum Differential Revision: D15184763 fbshipit-source-id: e1f008df82cf2d040322b8d62135ea2b5e0dcc0e
Showing
Please register or sign in to comment