Packages

object Packet

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Packet
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Atom[A] extends Encoder[A] with Decoder[A]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def padToAlign(b: ByteBuffer): Unit

    Adds as many zero padding bytes as necessary to stop on a 4 byte alignment.

    Adds as many zero padding bytes as necessary to stop on a 4 byte alignment. if the buffer position is already on a 4 byte alignment when calling this function, this method does nothing.

    b

    the buffer to align

    Annotations
    @throws(classOf[BufferOverflowException])
    Exceptions thrown

    BufferOverflowException in case the padding exceeds the provided buffer limit

  15. def printEscapedStringOn(stream: PrintStream, str: String): Unit
  16. def printHexOn(b: ByteBuffer, stream: PrintStream): Unit

    Prints a hex-dump version of a packet to a given stream.

    Prints a hex-dump version of a packet to a given stream. The format is similar to scsynth using dump mode 2. Unlike printTextOn this takes a raw received or encoded byte buffer and not a decoded instance of Packet.

    b

    the byte buffer containing the packet. the current position is saved, and the printing is performed from position 0 to the limit of the buffer. the previous position is restored.

    stream

    the print stream to use, for example System.out

    See also

    java.nio.Buffer#limit()

    java.nio.Buffer#position()

  17. def printTextOn(p: Packet, c: PacketCodec, stream: PrintStream): Unit

    Prints a text version of a packet to a given stream.

    Prints a text version of a packet to a given stream. The format is similar to scsynth using dump mode 1. Bundles will be printed with each message on a separate line and increasing indent.

    p

    the packet to print (either a message or bundle)

    stream

    the print stream to use, for example System.out

  18. def readString(b: ByteBuffer): String

    Reads a null terminated string from the current buffer position

    Reads a null terminated string from the current buffer position

    b

    buffer to read from. position and limit must be set appropriately. new position will be right after the terminating zero byte when the method returns

    Annotations
    @throws(classOf[BufferUnderflowException])
    Exceptions thrown

    BufferUnderflowException in case the string exceeds the provided buffer limit

  19. def skipToAlign(b: ByteBuffer): Unit

    Advances the current buffer position to an integer of four bytes.

    Advances the current buffer position to an integer of four bytes. The position is not altered if it is already aligned to a four byte boundary.

    b

    the buffer to advance

    Annotations
    @throws(classOf[BufferUnderflowException])
    Exceptions thrown

    BufferUnderflowException in case the skipping exceeds the provided buffer limit

  20. def skipToValues(b: ByteBuffer): Unit

    Advances in the buffer as long there are non-zero bytes, then advance to a four byte alignment.

    Advances in the buffer as long there are non-zero bytes, then advance to a four byte alignment.

    b

    the buffer to advance

    Annotations
    @throws(classOf[BufferUnderflowException])
    Exceptions thrown

    BufferUnderflowException in case the reads exceed the provided buffer limit

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def terminateAndPadToAlign(b: ByteBuffer): Unit

    Adds as many zero padding bytes as necessary to stop on a 4 byte alignment.

    Adds as many zero padding bytes as necessary to stop on a 4 byte alignment. if the buffer position is already on a 4 byte alignment when calling this function, another 4 zero padding bytes are added. buffer position will be on the new aligned boundary when return from this method

    b

    the buffer to pad

    Annotations
    @throws(classOf[BufferOverflowException])
    Exceptions thrown

    BufferOverflowException in case the padding exceeds the provided buffer limit

  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. object Atom

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped