Struct CachedFileStream
File backed cached random access stream wrapper.
struct CachedFileStream(InputStream)
if (isInputStream!InputStream);
Constructors
Name | Description |
---|---|
this
(source, writable, cached_file_path)
|
Fields
Name | Type | Description |
---|---|---|
m_ctx
|
CachedFileStream |
Properties
Name | Type | Description |
---|---|---|
dataAvailableForRead [get]
|
bool | |
empty [get]
|
bool | |
fd [get]
|
int | |
isOpen [get]
|
bool | |
leastSize [get]
|
ulong | |
path [get]
|
NativePath | |
readable [get]
|
bool | |
size [get]
|
ulong | |
writable [get]
|
bool |
Methods
Name | Description |
---|---|
close
()
|
|
finalize
()
|
|
flush
()
|
|
peek
()
|
|
read
(dst, mode)
|
|
read
(dst)
|
|
readUpTo
(offset)
|
|
seek
(offset)
|
|
tell
()
|
|
truncate
(size)
|
|
write
(bytes, mode)
|
|
write
(bytes)
|
|
write
(bytes)
|
Inner structs
Name | Description |
---|---|
CTX
|