Object

quasar.precog.common.Codec

LongCodec

Related Doc: package Codec

Permalink

object LongCodec extends FixedWidthCodec[Long] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, FixedWidthCodec[Long], Codec[Long], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LongCodec
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. FixedWidthCodec
  7. Codec
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type S = Long

    Permalink
    Definition Classes
    FixedWidthCodecCodec

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def as[B](to: (B) ⇒ Long, from: (Long) ⇒ B): Codec[B]

    Permalink
    Definition Classes
    Codec
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def encodedSize(a: Long): Int

    Permalink

    Returns the exact encoded size of a.

    Returns the exact encoded size of a.

    Definition Classes
    FixedWidthCodecCodec
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  13. def maxSize(a: Long): Int

    Permalink

    Returns an upper bound on the size of a.

    Returns an upper bound on the size of a.

    Definition Classes
    FixedWidthCodecCodec
  14. def minSize(a: Long): Int

    Permalink

    Returns a lower bound on the space required in a buffer so that a can be written.

    Returns a lower bound on the space required in a buffer so that a can be written.

    Definition Classes
    FixedWidthCodecCodec
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def read(src: ByteBuffer): Long

    Permalink

    Reads a value of type A from buffer.

    Reads a value of type A from buffer. This should generally follow the contract that writeUnsafe(a, buffer); read(buffer) == a.

    Definition Classes
    LongCodecCodec
  19. val size: Int

    Permalink
    Definition Classes
    LongCodecFixedWidthCodec
  20. def skip(buf: ByteBuffer): Unit

    Permalink

    This is similar to read(buffer), except that a value does not actually need to be returned.

    This is similar to read(buffer), except that a value does not actually need to be returned.

    Definition Classes
    FixedWidthCodecCodec
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def write[M[_]](a: Long)(implicit M: ByteBufferMonad[M]): M[Unit]

    Permalink

    Writes a using a ByteBufferMonad.

    Writes a using a ByteBufferMonad. This is much slower than just using writeInit/writeMore.

    Definition Classes
    Codec
  26. def writeAll(a: Long)(acquire: () ⇒ ByteBuffer, used: List[ByteBuffer] = Nil): List[ByteBuffer]

    Permalink

    Writes a entirely to a series of ByteBuffers returned by acquire.

    Writes a entirely to a series of ByteBuffers returned by acquire. The returned set of ByteBuffers is in reverse order, so that calls to writeAll can be chained by passing in the previous result to used.

    Definition Classes
    Codec
  27. def writeInit(a: Long, b: ByteBuffer): Option[Long]

    Permalink

    Initiate a write.

    Initiate a write. If a is successfully written (in its entirety) to buffer, then None is returned. Otherwise, Some(s) is returned, indicating that some more data (ie. s) still needs to be written using writeMore(s, _). This last condition will normally happen when we run out of space in the buffer, so a was only partially written.

    Definition Classes
    FixedWidthCodecCodec
  28. def writeMore(a: Long, b: ByteBuffer): Option[Long]

    Permalink

    Writes the remaining data from a call to writeInit to buffer.

    Writes the remaining data from a call to writeInit to buffer. If this is written completely and successfully, None is returned. Otherwise, Some(s2) is returned, which contains more data to be written with writeMore.

    Definition Classes
    FixedWidthCodecCodec
  29. def writeUnsafe(n: Long, sink: ByteBuffer): Unit

    Permalink

    Performs an *unsafe* write of a to buffer.

    Performs an *unsafe* write of a to buffer. This does not perform any safety checks and assumes buffer has at least encodedSize(a) bytes remaining. The behaviour if this is not the case is undefined.

    Definition Classes
    LongCodecCodec

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from FixedWidthCodec[Long]

Inherited from Codec[Long]

Inherited from AnyRef

Inherited from Any

Ungrouped