FileHandleDataSource
FileSoure getting data using a Swift FileHandle.
Fields
privateMeta
Data Declared private (to be encrypted) metadata of the File
publicMeta
Data Declared public metadata of the File
size
Int64 Declared size of the File
hasDataLeft
Bool Signifies that there are still bytes that have not been retrieved
Methods
init(file:privateMeta:publicMeta:size:hasDataLeft:)
Params
file
FileHandle
privateMeta
Data
publicMeta
Data
size
Int64
hasDataLeft
Bool
getNextChunk(ofSize:)
Retrieves up to chunkSizebytes from the data source.
Params
chunkSize
Int64
the size of a chunk to retrieve from the source
Returns
Data ·
next chunkSize bytes from the source
close()
Attempts to close the data source. Calling this method makes sense if the source is a file on disc.
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.
PrivMX Endpoint Swift v2.5