molecule.parsers

bytebuffer

package bytebuffer

Visibility
  1. Public
  2. All

Type Members

  1. final class ByteArrayBuilder extends AnyRef

    An immutable class that creates a String by prepending character buffers

Value Members

  1. object ByteArrayBuilder extends AnyRef

  2. final val anyByte: Parser[ByteBuffer, Byte]

    Parser that accepts any byte

    Parser that accepts any byte

    Definition Classes
    package
  3. final val anyInt: Parser[ByteBuffer, Int]

    Definition Classes
    package
  4. final def buffer(range: (Byte, Byte), ranges: (Byte, Byte)*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer accepting all bytes that fall in the specified ranges.

    Definition Classes
    package
  5. final def buffer(byte: Byte, bs: Byte*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer accepting all specified bytes.

    Definition Classes
    package
  6. final def bufferUntil(range: (Byte, Byte), ranges: (Byte, Byte)*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer until the received byte falls in one of the the specified ranges.

    Definition Classes
    package
  7. final def bufferUntil(b: Byte, bs: Byte*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer until byte b or any of bytes bs is found.

    Definition Classes
    package
  8. implicit def byte(b: Byte): Parser[ByteBuffer, Byte]

    Parser that succeeds if it matches a single byte

    Parser that succeeds if it matches a single byte

    Definition Classes
    package
  9. def byteArray(n: Int): Parser[ByteBuffer, Array[Byte]]

    Parse a Byte array of size n

    Parse a Byte array of size n

    Definition Classes
    package
  10. def byteBuffer(n: Int): Parser[ByteBuffer, ByteBuffer]

    Parse a Byte buffer of size n

    Parse a Byte buffer of size n

    Definition Classes
    package
  11. def byteBufferList(n: Int): Parser[ByteBuffer, List[ByteBuffer]]

    Parse a Byte buffer list of n bytes

    Parse a Byte buffer list of n bytes

    Definition Classes
    package
  12. def byteBufferSeg(n: Int): Parser[ByteBuffer, Seg[ByteBuffer]]

    Parse a Byte buffer segment of n bytes

    Parse a Byte buffer segment of n bytes

    Definition Classes
    package
  13. final def mkBuffer(seg: Seg[ByteBuffer]): ByteBuffer

    Copies the remaining bytes of each ByteBuffer in a Seg to a single new ByteBuffer

    Copies the remaining bytes of each ByteBuffer in a Seg to a single new ByteBuffer

    Definition Classes
    package
  14. def splitAt(b: Byte, bs: Byte*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will split the received ByteBuffer at the position where byte b or any of bytes bs occur. It fails if the first byte of the received ByteBuffer match the condition, so the resulting ByteBuffer will never be empty.

    Definition Classes
    package
  15. def splitAt(b: Byte): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will split the received ByteBuffer at the position where byte b occurs. It fails if the first byte of the received ByteBuffer match the condition, so the resulting ByteBuffer will never be empty.

    Definition Classes
    package
  16. def splitIf(condition: (Byte) ⇒ Boolean): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will split the received ByteBuffer at the position when the condition is true. It fails if the first byte of the received ByteBuffer match the condition, so the resulting ByteBuffer will never be empty.

    Definition Classes
    package