21d95e3
Branches > refactor/use-spec-1 > 21d95e3 > files / src / net / bowmap / core.clj
comment
Commit: 21d95e382c04c4ab9386a04eec5d801cd2b7442d
Parent: e863f00
1 changed file:
src/net/bowmap/packet/client.clj view file
@@ -105,6 +105,7 @@ (write/write-varint! id) (encoder pk))] ;; This buffer only contains the data + a varint, which can never be larger than 5 bytes+ ;; TODO apparently there's a 'CompositeByteBuf' for this very purpose :p (-> (Unpooled/buffer (+ (ByteBuf/.writerIndex data-buf) 5)) (write/write-varint! (ByteBuf/.writerIndex data-buf)) (ByteBuf/.writeBytes data-buf))))