public static byte[] ExtractBytes(AlternativeCompositeByteBuf buf) { var buffer = buf.NioBuffer(); buffer.Position = 0; var bytes = new byte[buffer.Remaining()]; buffer.Get(bytes, 0, bytes.Length); return bytes; }
public static byte[] ExtractBytes(AlternativeCompositeByteBuf buf) { var buffer = buf.NioBuffer(); buffer.Position = 0; var bytes = new byte[buffer.Remaining()]; buffer.Get(bytes, 0, bytes.Length); return(bytes); }