Sha256: 2f1165e8a07e0fa5ef9f962e6c3fde3ab5671ec377bdfcda3cdc0117a4475c7d

Contents?: true

Size: 390 Bytes

Versions: 15

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true

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

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb