object LongCodec extends FixedWidthCodec[Long] with Product with Serializable
- Alphabetic
- By Inheritance
- LongCodec
- Serializable
- Serializable
- Product
- Equals
- FixedWidthCodec
- Codec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
S = Long
- Definition Classes
- FixedWidthCodec → Codec
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
as[B](to: (B) ⇒ Long, from: (Long) ⇒ B): Codec[B]
- Definition Classes
- Codec
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
encodedSize(a: Long): Int
Returns the exact encoded size of
a.Returns the exact encoded size of
a.- Definition Classes
- FixedWidthCodec → Codec
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
maxSize(a: Long): Int
Returns an upper bound on the size of
a.Returns an upper bound on the size of
a.- Definition Classes
- FixedWidthCodec → Codec
-
def
minSize(a: Long): Int
Returns a lower bound on the space required in a buffer so that
acan be written.Returns a lower bound on the space required in a buffer so that
acan be written.- Definition Classes
- FixedWidthCodec → Codec
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
read(src: ByteBuffer): Long
Reads a value of type
Afrombuffer. -
val
size: Int
- Definition Classes
- LongCodec → FixedWidthCodec
-
def
skip(buf: ByteBuffer): Unit
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
- FixedWidthCodec → Codec
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
write[M[_]](a: Long)(implicit M: ByteBufferMonad[M]): M[Unit]
Writes
ausing aByteBufferMonad.Writes
ausing aByteBufferMonad. This is much slower than just using writeInit/writeMore.- Definition Classes
- Codec
-
def
writeAll(a: Long)(acquire: () ⇒ ByteBuffer, used: List[ByteBuffer] = Nil): List[ByteBuffer]
Writes
aentirely to a series ofByteBuffers returned byacquire.Writes
aentirely to a series ofByteBuffers returned byacquire. The returned set ofByteBuffers is in reverse order, so that calls towriteAllcan be chained by passing in the previous result toused.- Definition Classes
- Codec
-
def
writeInit(a: Long, b: ByteBuffer): Option[Long]
Initiate a write.
Initiate a write. If a is successfully written (in its entirety) to
buffer, thenNoneis returned. Otherwise,Some(s)is returned, indicating that some more data (ie.s) still needs to be written usingwriteMore(s, _). This last condition will normally happen when we run out of space in the buffer, soawas only partially written.- Definition Classes
- FixedWidthCodec → Codec
-
def
writeMore(a: Long, b: ByteBuffer): Option[Long]
Writes the remaining data from a call to
writeInittobuffer.Writes the remaining data from a call to
writeInittobuffer. If this is written completely and successfully,Noneis returned. Otherwise,Some(s2)is returned, which contains more data to be written withwriteMore.- Definition Classes
- FixedWidthCodec → Codec
-
def
writeUnsafe(n: Long, sink: ByteBuffer): Unit
Performs an *unsafe* write of
atobuffer.