xRead abstract method

void xRead(
  1. Uint8List target,
  2. int fileOffset
)

Fill the target with bytes read from fileOffset.

If the file is not large enough to fullfill the read, a VfsException with an error code of SqlExtendedError.SQLITE_IOERR_SHORT_READ must be thrown. Additional, the rest of target must be filled with zeroes.

Safety warning: Target may be a direct view over native memory that must not be used after this function returns.

Implementation

void xRead(Uint8List target, int fileOffset);