com.opendatagroup.hadrian.ast

BinaryFormatter

object BinaryFormatter

Helper object for pack and unpack that checks format strings.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BinaryFormatter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Declare[T] extends AnyRef

    Trait for binary format declaration.

  2. case class DeclareBoolean[T](value: T) extends Declare[T] with Product with Serializable

    Binary format declaration for a boolean type.

  3. case class DeclareByte[T](value: T, unsigned: Boolean) extends Declare[T] with Product with Serializable

    Binary format declaration for an integer byte.

  4. case class DeclareDouble[T](value: T, littleEndian: Boolean) extends Declare[T] with Product with Serializable

    Binary format declaration for a double-precision (64-bit) floating point number.

  5. case class DeclareFloat[T](value: T, littleEndian: Boolean) extends Declare[T] with Product with Serializable

    Binary format declaration for a single-precision (32-bit) floating point number.

  6. case class DeclareInt[T](value: T, littleEndian: Boolean, unsigned: Boolean) extends Declare[T] with Product with Serializable

    Binary format declaration for a regular (32-bit) integer.

  7. case class DeclareLong[T](value: T, littleEndian: Boolean, unsigned: Boolean) extends Declare[T] with Product with Serializable

    Binary format declaration for a long (64-bit) integer.

  8. case class DeclarePad[T](value: T) extends Declare[T] with Product with Serializable

    Binary format declaration for a padded byte.

  9. case class DeclarePrefixed[T](value: T) extends Declare[T] with Product with Serializable

    Binary format declaration for length-prefixed raw data.

  10. case class DeclareRaw[T](value: T) extends Declare[T] with Product with Serializable

    Binary format declaration for arbitrary-width raw data.

  11. case class DeclareRawSize[T](value: T, size: Int) extends Declare[T] with Product with Serializable

    Binary format declaration for fixed-width raw data.

  12. case class DeclareShort[T](value: T, littleEndian: Boolean, unsigned: Boolean) extends Declare[T] with Product with Serializable

    Binary format declaration for a short (16-bit) integer.

  13. case class DeclareToNull[T](value: T) extends Declare[T] with Product with Serializable

    Binary format declaration for null-terminated raw data.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val FormatBoolean: Regex

  7. val FormatByte: Regex

  8. val FormatDouble: Regex

  9. val FormatFloat: Regex

  10. val FormatInt: Regex

  11. val FormatLong: Regex

  12. val FormatPad: Regex

  13. val FormatPrefixed: Regex

  14. val FormatRaw: Regex

  15. val FormatRawSize: Regex

  16. val FormatShort: Regex

  17. val FormatToNull: Regex

  18. val FormatUnsignedByte: Regex

  19. val FormatUnsignedInt: Regex

  20. val FormatUnsignedLong: Regex

  21. val FormatUnsignedShort: Regex

  22. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  23. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def formatToDeclare[T](value: T, f: String, pos: Option[String], output: Boolean): Declare[T]

    Convert a format string to a Declare object.

    Convert a format string to a Declare object.

    value

    task result, usually Java code, passed to the format declarer

    f

    format string

    pos

    source file location from the locator mark

    output

    true for pack; false for unpack

    returns

    format declarer

  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def isLittleEndian(endianness: String): Boolean

  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped