Struct gdnative::_File
[−]
[src]
pub struct _File { /* fields omitted */ }
core class _File : Reference
(reference counted)
Base class
_File inherits Reference and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl _File
[src]
pub fn as_reference(&self) -> Reference
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn open_encrypted(
&mut self,
path: GodotString,
mode_flags: i64,
key: ByteArray
) -> GodotResult
[src]
&mut self,
path: GodotString,
mode_flags: i64,
key: ByteArray
) -> GodotResult
pub fn open_encrypted_with_pass(
&mut self,
path: GodotString,
mode_flags: i64,
pass: GodotString
) -> GodotResult
[src]
&mut self,
path: GodotString,
mode_flags: i64,
pass: GodotString
) -> GodotResult
pub fn open_compressed(
&mut self,
path: GodotString,
mode_flags: i64,
compression_mode: i64
) -> GodotResult
[src]
&mut self,
path: GodotString,
mode_flags: i64,
compression_mode: i64
) -> GodotResult
pub fn open(&mut self, path: GodotString, flags: i64) -> GodotResult
[src]
pub fn close(&mut self)
[src]
pub fn is_open(&self) -> bool
[src]
pub fn seek(&mut self, position: i64)
[src]
pub fn seek_end(&mut self, position: i64)
[src]
pub fn get_position(&self) -> i64
[src]
pub fn get_len(&self) -> i64
[src]
pub fn eof_reached(&self) -> bool
[src]
pub fn get_8(&self) -> i64
[src]
pub fn get_16(&self) -> i64
[src]
pub fn get_32(&self) -> i64
[src]
pub fn get_64(&self) -> i64
[src]
pub fn get_float(&self) -> f64
[src]
pub fn get_double(&self) -> f64
[src]
pub fn get_real(&self) -> f64
[src]
pub fn get_buffer(&self, len: i64) -> ByteArray
[src]
pub fn get_line(&self) -> GodotString
[src]
pub fn get_as_text(&self) -> GodotString
[src]
pub fn get_md5(&self, path: GodotString) -> GodotString
[src]
pub fn get_sha256(&self, path: GodotString) -> GodotString
[src]
pub fn get_endian_swap(&mut self) -> bool
[src]
pub fn set_endian_swap(&mut self, enable: bool)
[src]
pub fn get_error(&self) -> GodotResult
[src]
pub fn get_var(&self) -> Variant
[src]
pub fn get_csv_line(&self, delim: GodotString) -> StringArray
[src]
pub fn store_8(&mut self, value: i64)
[src]
pub fn store_16(&mut self, value: i64)
[src]
pub fn store_32(&mut self, value: i64)
[src]
pub fn store_64(&mut self, value: i64)
[src]
pub fn store_float(&mut self, value: f64)
[src]
pub fn store_double(&mut self, value: f64)
[src]
pub fn store_real(&mut self, value: f64)
[src]
pub fn store_buffer(&mut self, buffer: ByteArray)
[src]
pub fn store_line(&mut self, line: GodotString)
[src]
pub fn store_string(&mut self, string: GodotString)
[src]
pub fn store_var(&mut self, value: Variant)
[src]
pub fn store_pascal_string(&mut self, string: GodotString)
[src]
pub fn get_pascal_string(&mut self) -> GodotString
[src]
pub fn file_exists(&self, path: GodotString) -> bool
[src]
pub fn get_modified_time(&self, file: GodotString) -> i64
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Reference>
pub fn as_object(&self) -> Object
[src]
Up-cast.
pub fn init_ref(&mut self) -> bool
[src]
pub fn reference(&mut self) -> bool
[src]
pub fn unreference(&mut self) -> bool
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for _File
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for _File
[src]
type Target = Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.