Module: RuneRb::IO

Defined in:
lib/rrb.rb,
lib/rrb/io/buffer.rb,
lib/rrb/io/message.rb,
lib/rrb/io/readable.rb,
lib/rrb/io/writeable.rb,
lib/rrb/io/validation.rb,
lib/rrb/io/native_readable.rb

Overview

The IO module provides objects, modules, and functions to handle input/output operations.

Since:

  • 0.0.1

Defined Under Namespace

Modules: NativeReadable, Readable, Validation, Writeable Classes: Buffer, Message

Constant Summary collapse

BYTE_ORDERS =

Acceptable byte orders in which multi-byte values can be read.

Returns:

  • (Array)

    the orders.

Since:

  • 0.0.1

%i[BIG MIDDLE INVERSE_MIDDLE LITTLE].freeze
BYTE_SIZE =

The size of a byte

Since:

  • 0.0.1

8
BYTE_MUTATIONS =

Valid byte mutations

Returns:

  • (Array)

Since:

  • 0.0.1

%i[ADD NEG SUB STD].freeze
RW_TYPES =

Types that can be read.

Returns:

  • (Array)

Since:

  • 0.0.1

%i[bits bit byte bytes medium int long reverse_bytes short smart string].freeze
BIT_MASK_OUT =

Bit masks for bit packing

Returns:

  • (Array)

Since:

  • 0.0.1

(0...32).collect { |bit| (1 << bit) - 1 }