Class: Mspack::ChmDecompressor::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/mspack.rb,
ext/mspack/mspack.c

Instance Method Summary collapse

Instance Method Details

#filenameObject



61
62
63
64
65
# File 'ext/mspack/mspack.c', line 61

static VALUE chmd_header_filename(VALUE self) {
  struct mschmd_header *header;
  Data_Get_Struct(self, struct mschmd_header, header);
  return rb_str_new2(header->filename);
}

#filesObject



67
68
69
70
71
72
73
74
# File 'ext/mspack/mspack.c', line 67

static VALUE chmd_header_files(VALUE self) {
  struct mschmd_header *header;
  Data_Get_Struct(self, struct mschmd_header, header);
  
  VALUE fileObj = rb_obj_alloc(ChmDFile);
  rb_obj_call_init(fileObj, 0, NULL);
  return Data_Wrap_Struct(ChmDFile, NULL, NULL, header->files);
}