DataFileInput

Composes a seekable file with buffered binary input. A seek causes the input buffer to be cleared.

Constructors

this
this(char[] path, File.Style style)

Compose a FileStream.

this
this(File file)

Wrap a File instance.

Members

Functions

file
File file()

Return the underlying conduit.

Inherited Members

From DataInput

get
alias get = array
Undocumented in source.
getBool
alias getBool = boolean
Undocumented in source.
getByte
alias getByte = int8
Undocumented in source.
getShort
alias getShort = int16
Undocumented in source.
getInt
alias getInt = int32
Undocumented in source.
getLong
alias getLong = int64
Undocumented in source.
getFloat
alias getFloat = float32
Undocumented in source.
getDouble
alias getDouble = float64
Undocumented in source.
Native
anonymousenum Native

Endian variations.

input
InputStream input;
Undocumented in source.
allocate
DataInput allocate(Allocate allocate)

Set the array allocator.

endian
DataInput endian(int e)

Set current endian translation.

array
uint array(void[] dst)

Read an array back into a user-provided workspace. The space must be sufficiently large enough to house all of the array, and the actual number of bytes is returned.

array
void[] array()

Read an array back from the source, with the assumption it has been written using DataOutput.put() or otherwise prefixed with an integer representing the total number of bytes within the array content. That's *bytes*, not elements.

boolean
bool boolean()
int8
byte int8()
int16
short int16()
int32
int int32()
int64
long int64()
float32
float float32()
float64
double float64()
read
size_t read(void[] data)

Meta