This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.netty.buffer.ByteBuf; | |
import io.netty.buffer.ByteBufAllocator; | |
import io.netty.buffer.Unpooled; | |
import java.nio.ByteBuffer; | |
import java.nio.charset.Charset; | |
public class ByteBufTest { | |
public static void main(String[] args) { | |
// 4 types of buffers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Adder { | |
def add(a: Int, b: Int): Int = { | |
a + b | |
} | |
} |