Sha256: 8a6095c9303afb85e985314fd4d7d16fce93cd6a45cfe4fe372654c9c8e881a9

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

# 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

5 entries across 5 versions & 1 rubygems

Version Path
procon_bypass_man-0.2.3 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.2.2 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.2.1 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.2.0 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb
procon_bypass_man-0.1.23 lib/procon_bypass_man/procon/value_objects/binary/inbound_procon_binary.rb