Netty03-进阶.md
———————————————-+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f |+——–+————————————————-+—————-+|00000000| 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f |…………….||00000010| 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f |…………….||00000020| 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f |…………….||00000030| 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f |…………….||00000040| 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f |…………….||00000050| 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ...
Netty02-入门.md
———————————————-+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f |+——–+————————————————-+—————-+|00000000| 7a 68 61 6e 67 73 61 6e |zhangsan |+——–+————————————————-+—————-+22:19:48 [DEBUG] [nioEventLoopGroup-4-1] i.n.h.l.LoggingHandler - [id: 0x251562d5, L:/127.0.0.1:8080 - R:/127.0.0.1:52588] READ COMPLETE22:19:48 [DEBUG] [defaultEventLoopGroup-2-1] c.i.o.EventLoopTest - zhangsan22:19:50 [DEBUG] [nioEventLoopGroup-4-1] i.n.h.l.LoggingHandler - ...
Netty02-入门.md
———————————————-+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f |+——–+————————————————-+—————-+|00000000| 7a 68 61 6e 67 73 61 6e |zhangsan |+——–+————————————————-+—————-+22:19:48 [DEBUG] [nioEventLoopGroup-4-1] i.n.h.l.LoggingHandler - [id: 0x251562d5, L:/127.0.0.1:8080 - R:/127.0.0.1:52588] READ COMPLETE22:19:48 [DEBUG] [defaultEventLoopGroup-2-1] c.i.o.EventLoopTest - zhangsan22:19:50 [DEBUG] [nioEventLoopGroup-4-1] i.n.h.l.LoggingHandler - ...
Netty01-nio.md
—–+——————– all ————————+—————-+”); System.out.printf(“position: [%d], limit: [%d]\n”, buffer.position(), oldlimit); System.out.println(origin); buffer.limit(oldlimit); }
/**
* 打印可读取内容
* @param buffer
*/
public static void debugRead(ByteBuffer buffer) {
StringBuilder builder = new StringBuilder(256);
appendPrettyHexDump(builder, buffer, buffer.position(), buffer.limit() - buffer.position());
System.out.println("+--------+-------------------- read - ...
Netty01-nio.md
—–+——————– all ————————+—————-+”); System.out.printf(“position: [%d], limit: [%d]\n”, buffer.position(), oldlimit); System.out.println(origin); buffer.limit(oldlimit); }
/**
* 打印可读取内容
* @param buffer
*/
public static void debugRead(ByteBuffer buffer) {
StringBuilder builder = new StringBuilder(256);
appendPrettyHexDump(builder, buffer, buffer.position(), buffer.limit() - buffer.position());
System.out.println("+--------+-------------------- read - ...