Class StateRecorderImpl

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public final class StateRecorderImpl extends StateRecorder
Full implementation of StateRecorder, using stringstream.
  • Constructor Details

    • StateRecorderImpl

      public StateRecorderImpl()
      Instantiate a recorder.
  • Method Details

    • getData

      public byte[] getData()
      Read binary data.
      Returns:
      the bytes that were read
    • writeBytes

      public void writeBytes(byte[] data)
      Write binary data.
      Parameters:
      data - the bytes to write (not null, unaffected)
    • writeBytes

      public void writeBytes(byte[] data, int numBytes)
      Write binary data.
      Parameters:
      data - the bytes to write (not null, unaffected)
      numBytes - the number of byte to write (≥0)