32 lines
799 B
Plaintext
32 lines
799 B
Plaintext
#elem-brief: File Object interface
|
|
#elem-version: 1.0
|
|
#elem-type:FILE
|
|
#elem-author:Heero Yui<yui.heero@gmail.com>
|
|
|
|
#param:_fileName: Name of the local file to instanciate
|
|
//factory obj:zeus-File
|
|
|
|
#brief:Get size of the file
|
|
#return:current size of the file
|
|
uint64 getSize()
|
|
|
|
#brief:Get the name of the file
|
|
#return:Full name of the file (sha512)
|
|
string getName()
|
|
|
|
#brief:Get the file "mine-type"
|
|
#return:string of the mine-type
|
|
string getMineType()
|
|
|
|
#brief:get a part of the file (size < 64ko)
|
|
#param:_start:Start position in the file
|
|
#param:_stop:Stop position in the file
|
|
#return:Buffer with the data
|
|
raw getPart(uint64, uint64)
|
|
|
|
|
|
#brief:Store all the data in a specific file
|
|
#param:_file: Handle on the file
|
|
#param:_filename:Local filename
|
|
//tool void storeInTemporaryFile(obj:zeus-File, string)
|