Defile.read

A wrapper for PHYSFS_read.

Reads data from a file. Note that the file must have been opened with the OpenFor.Read flag set. See the documentation for PHYSFS_read for details.

  1. size_t read(ref ubyte[] buffer, size_t objSize, size_t objCount)
  2. size_t read(void* ptr, size_t objSize, size_t objCount)
    struct Defile
    size_t
    read
    (
    void* ptr
    ,
    size_t objSize
    ,
    size_t objCount
    )

Parameters

ptr
Type: void*

A pointer that will be used to store the objects read = from the file.

objSize
Type: size_t

The number of bytes to read at a time.

objCount
Type: size_t

The number of times to read objSize bytes.

Return Value

Type: size_t

The total number of objects read.

Throws

DefileException if an error occurs.

Meta