package org.openrs2.buffer import io.netty.util.ReferenceCounted public inline fun T.use(block: (T) -> R): R { try { return block(this) } finally { release() } }