Flips the buffer if not already flipped. @return true if the buffer was flipped by this call
()
| 65 | * @return true if the buffer was flipped by this call |
| 66 | */ |
| 67 | public boolean flip() { |
| 68 | if (flipped.compareAndSet(false, true)) { |
| 69 | buf.flip(); |
| 70 | return true; |
| 71 | } else { |
| 72 | return false; |
| 73 | } |
| 74 | } |
| 75 | } |
no outgoing calls