}
case SNAPPY:
{
try
{
byte[] newbuf = new byte[Snappy.maxCompressedLength(content.readableBytes())];
int len = Snappy.compress(raw,
content.getReadIndex(), content.readableBytes(), newbuf, 0);
// SnappyBuffer newbuf = SnappyCompressor.compress(raw,
// content.getReadIndex(), content.readableBytes());
outbuf.write(newbuf, 0, len);