Check that Offset and DataSize form a valid read range.
Declared in <llvm/Support/BinaryStream.h>
Error
checkOffsetForRead(
uint64_t Offset,
uint64_t DataSize);
a success error code if the read range is valid, otherwise an appropriate error code.
| Name | Description |
|---|---|
| Offset | Byte offset into the stream at which the read would begin. |
| DataSize | Number of bytes that would be read. |