Class: Mspack::ChmDecompressor::File
- Inherits:
-
Object
- Object
- Mspack::ChmDecompressor::File
- Defined in:
- lib/mspack/chm_decompressor.rb,
ext/mspack_native/chm_decompressor_file.c
Instance Method Summary collapse
Instance Method Details
#fast_find? ⇒ Boolean
43 44 45 |
# File 'ext/mspack_native/chm_decompressor_file.c', line 43 VALUE chmd_file_is_fast_find(VALUE self) { return rb_iv_get(self, "is_fast_find"); } |
#filename ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'ext/mspack_native/chm_decompressor_file.c', line 18 VALUE chmd_file_filename(VALUE self) { struct mschmd_file *file; Data_Get_Struct(self, struct mschmd_file, file); if (!file->filename) { return Qnil; } return rb_str_new2(file->filename); } |
#next ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'ext/mspack_native/chm_decompressor_file.c', line 29 VALUE chmd_file_next(VALUE self) { struct mschmd_file *file; Data_Get_Struct(self, struct mschmd_file, file); struct mschmd_file *next = file->next; if (!next) { return Qnil; } VALUE nextObj = Data_Wrap_Struct(ChmDFile, NULL, chmd_file_free, next); rb_iv_set(nextObj, "is_fast_find", Qfalse); return nextObj; } |