Class: Mapi::Pst::TablePtr

Inherits:
Struct
  • Object
show all
Defined in:
lib/mapi/pst.rb

Overview

_pst_table_ptr_struct

Constant Summary collapse

UNPACK_STR32 =
'V3'
UNPACK_STR64 =
'T3'
SIZE32 =
12
SIZE64 =
24

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, is64) ⇒ TablePtr

Returns a new instance of TablePtr.

Parameters:

  • data (String)
  • is64 (Boolean)


445
446
447
448
# File 'lib/mapi/pst.rb', line 445

def initialize data, is64
	data = Pst.unpack(data, is64 ? UNPACK_STR64 : UNPACK_STR32) if String === data
	super(*data)
end

Instance Attribute Details

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



437
438
439
# File 'lib/mapi/pst.rb', line 437

def offset
  @offset
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



437
438
439
# File 'lib/mapi/pst.rb', line 437

def start
  @start
end

#u1Object

Returns the value of attribute u1

Returns:

  • (Object)

    the current value of u1



437
438
439
# File 'lib/mapi/pst.rb', line 437

def u1
  @u1
end