File.read

Reads up to count objects into the array buffer

  1. size_t read(void* ptr, size_t size, size_t nmemb)
    struct File
    nothrow @nogc
    size_t
    read
    (
    void* ptr
    ,
    size_t size
    ,
    size_t nmemb
    )
  2. size_t read(T[] buf)
  3. size_t read(T b)

Parameters

ptr void*

pointer to the first object in the array to be read

size size_t

size of each object in bytes

nmemb size_t

the number of the objects to be read

Return Value

Type: size_t

number of objects read successfully

Meta