Codec

abstract class Codec
class Object
trait Matchable
class Any
object Gzip.type
object Identity.type

Value members

Abstract methods

def compress(bytes: ByteString): ByteString
def uncompress(bytes: ByteString): ByteString
def uncompress(compressedBitSet: Boolean, bytes: ByteString): ByteString

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.

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.

Source:
Codec.scala

Concrete methods

def isCompressed: Boolean

Abstract fields

val name: String