MCPcopy Index your code
hub / github.com/aofeng/JavaTutorial / clear

Method clear

src/cn/aofeng/demo/nio/NioEchoServer.java:46–50  ·  view source on GitHub ↗

重置缓冲区状态标志位:position设置为0,limit设置为capacity的值,所有mark无效。 注:缓冲区原来的内容还在,并没有清除。 @param buffer 字节缓冲区

(ByteBuffer buffer)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

readDataMethod · 0.95
mainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected