Skip to content

Instantly share code, notes, and snippets.

@Jire
Created May 23, 2016 11:08
Show Gist options
  • Save Jire/a7dd904b6e09a5f7277519db571ce019 to your computer and use it in GitHub Desktop.
Save Jire/a7dd904b6e09a5f7277519db571ce019 to your computer and use it in GitHub Desktop.
val buf = ByteBufPacketeer(ctx.alloc().directBuffer())
buf + 14.byte + 0.byte + 16.byte + 0.byte + 255.byte + 317.short + true
for (i in 1..29) buf + 0.short
buf + "acelta$it" + "password"
ctx.writeAndFlush(buf.data, ctx.voidPromise())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment