object Identity extends Codec

Source
Identity.scala
Linear Supertypes
Codec, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Identity
  2. Codec
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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]) @IntrinsicCandidate() @native()
  6. def compress(bytes: ByteString): ByteString
    Definition Classes
    IdentityCodec
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def isCompressed: Boolean
    Definition Classes
    Codec
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. val name: String
    Definition Classes
    IdentityCodec
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. def uncompress(compressedBitSet: Boolean, bytes: ByteString, maxDecompressedSize: Int): ByteString

    Process the given frame bytes, uncompress if the compression bit is set, enforcing a maximum decompressed size.

    Process the given frame bytes, uncompress if the compression bit is set, enforcing a maximum decompressed size.

    Delegates to uncompress(bytes, maxDecompressedSize) so that codecs which can enforce the limit while decompressing (rather than after) get the chance to fail fast.

    compressedBitSet

    whether the compression bit is set

    bytes

    the frame bytes

    maxDecompressedSize

    the maximum allowed decompressed size in bytes

    Definition Classes
    IdentityCodec
  20. def uncompress(bytes: ByteString, maxDecompressedSize: Int): ByteString

    Decompress the given bytes, enforcing a maximum decompressed size.

    Decompress the given bytes, enforcing a maximum decompressed size. Throws a StatusException with RESOURCE_EXHAUSTED if the decompressed output exceeds maxDecompressedSize.

    This default implementation decompresses in full and checks afterwards, so it bounds what a caller receives but not what is allocated along the way. Codecs that can enforce the limit while decompressing should override it; Gzip does.

    bytes

    the compressed bytes

    maxDecompressedSize

    the maximum allowed decompressed size in bytes

    Definition Classes
    IdentityCodec
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version 9)

  2. def uncompress(compressedBitSet: Boolean, bytes: ByteString): ByteString

    Process the given frame bytes, uncompress if the compression bit is set.

    Process the given frame bytes, uncompress if the compression bit is set. Identity codec will fail with a io.grpc.StatusException if the compressedBit is set.

    Places no bound on the decompressed size; prefer uncompress(compressedBitSet, bytes, maxDecompressedSize).

    Definition Classes
    IdentityCodec
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use uncompress(compressedBitSet, bytes, maxDecompressedSize), which bounds the decompressed size

  3. def uncompress(bytes: ByteString): ByteString

    Decompress the given bytes with no bound on the output size.

    Decompress the given bytes with no bound on the output size.

    A compressed frame can inflate to arbitrarily many bytes, so a caller that does not impose a limit is exposed to a decompression bomb. Prefer uncompress(bytes, maxDecompressedSize), which fails with RESOURCE_EXHAUSTED instead of allocating without bound.

    Definition Classes
    IdentityCodec
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use uncompress(bytes, maxDecompressedSize), which bounds the decompressed size

Inherited from Codec

Inherited from AnyRef

Inherited from Any

Ungrouped