Class Bytes

All Implemented Interfaces:
PointerInterface
Direct Known Subclasses:
Str

public class Bytes extends Array
  • Constructor Details

    • Bytes

      public Bytes(PointerContainer pointer, int size)
    • Bytes

      public Bytes(PointerContainer pointer)
    • Bytes

      public Bytes(byte[] bytes)
    • Bytes

      public Bytes(int size)
  • Method Details

    • getByte

      public byte getByte(int index)
    • setByte

      public void setByte(int index, byte value)
    • setInt

      public void setInt(int index, int value)
      Write value to the next four bytes starting at index
      Parameters:
      index - index in byte array for the first byte
      value - integer (four bytes) to write into byte array
    • toBytes

      public byte[] toBytes()
    • toBytes

      public byte[] toBytes(int start, int end)