MCPcopy Create free account
hub / github.com/davidgiven/luje / flip

Method flip

lib/java/nio/Buffer.java:128–133  ·  view source on GitHub ↗

Flips this buffer. The limit is set to the current position, then the position is set to zero, and the mark is cleared. The content of this buffer is not changed. @return this buffer.

()

Source from the content-addressed store, hash-verified

126 * @return this buffer.
127 */
128 public final Buffer flip() {
129 limit = position;
130 position = 0;
131 mark = UNSET_MARK;
132 return this;
133 }
134
135 /**
136 * Indicates if there are elements remaining in this buffer, that is if

Callers 5

flushMethod · 0.80
encodeMethod · 0.80
allocateMoreMethod · 0.80
decodeMethod · 0.80
allocateMoreMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected