Sha256: adf680a1869d7dec80eb3907d791784acf91ef98b75adf99679d6c066f3fd346

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

# proconから取得したばかりのバイナリ
class ProconBypassMan::Domains::InboundProconBinary < ProconBypassMan::Domains::Binary::Base
  include ProconBypassMan::Domains::HasImmutableBinary

  # @return [String]
  def raw
    binary.dup
  end

  def unpack
    binary.unpack("H*")
  end

  # @return [ProconBypassMan::ProconReader]
  def to_procon_reader
    ProconBypassMan::ProconReader.new(binary: binary)
  end

  # @return [Boolean]
  def user_operation_data?
    binary[0] == "\x30".b
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
procon_bypass_man-0.1.16.1 lib/procon_bypass_man/domains/binary/inbound_procon_binary.rb
procon_bypass_man-0.1.16 lib/procon_bypass_man/domains/binary/inbound_procon_binary.rb