Class: Sigma::BlockId

Inherits:
Object
  • Object
show all
Extended by:
FFI::Library
Defined in:
lib/sigma/block_header.rb

Overview

Represents the Id of a BlockHeader

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#pointerObject

Returns the value of attribute pointer.



152
153
154
# File 'lib/sigma/block_header.rb', line 152

def pointer
  @pointer
end

Class Method Details

.with_raw_pointer(pointer) ⇒ BlockId

Note:

A user of sigma_rb generally does not need to call this function

Takes ownership of an existing BlockId Pointer.

Parameters:

  • pointer (FFI::MemoryPointer)

Returns:



158
159
160
# File 'lib/sigma/block_header.rb', line 158

def self.with_raw_pointer(pointer)
  init(pointer)
end