Class: QRTools::Header

Inherits:
Object
  • Object
show all
Defined in:
ext/qrtools/qrtools_header.c

Instance Method Summary collapse

Instance Method Details

#byte_sizeObject



31
32
33
34
35
36
# File 'ext/qrtools/qrtools_header.c', line 31

static VALUE byte_size(VALUE self)
{
  QrCodeHeader * header;
  Data_Get_Struct(self, QrCodeHeader, header);
  return INT2NUM(header->byte_size);
}

#character_sizeObject



24
25
26
27
28
29
# File 'ext/qrtools/qrtools_header.c', line 24

static VALUE character_size(VALUE self)
{
  QrCodeHeader * header;
  Data_Get_Struct(self, QrCodeHeader, header);
  return INT2NUM(header->charactor_size);
}

#levelObject



17
18
19
20
21
22
# File 'ext/qrtools/qrtools_header.c', line 17

static VALUE level(VALUE self)
{
  QrCodeHeader * header;
  Data_Get_Struct(self, QrCodeHeader, header);
  return INT2NUM(header->level);
}

#modelObject



3
4
5
6
7
8
# File 'ext/qrtools/qrtools_header.c', line 3

static VALUE model(VALUE self)
{
  QrCodeHeader * header;
  Data_Get_Struct(self, QrCodeHeader, header);
  return INT2NUM(header->model);
}

#versionObject



10
11
12
13
14
15
# File 'ext/qrtools/qrtools_header.c', line 10

static VALUE version(VALUE self)
{
  QrCodeHeader * header;
  Data_Get_Struct(self, QrCodeHeader, header);
  return INT2NUM(header->version);
}