5646852

Bowmap · bowmap.git · Tickets

Branches > main > 5646852 > files

Update readers and writers docstrings

Grahp, 2026-10-09

Commit: 5646852452dfa5e77c4a764e033fa9b815ea4bd7
Parent: a5b8518

2 changed files:

src/net/bowmap/server/packet/readers.clj modified (view file)

@@ -1,7 +1,8 @@ (ns net.bowmap.server.packet.readers-  "Functions for reading values from io.netty.ByteBufs.-   Buffers are assumed to be properly framed and contain exactly 1 packet.-   Functions look like type<, where 'type' is a Minecraft protocol type.+  "Functions for reading packet values from frames.+   Readers are named after the encoding they read, suffixed with an <, such as+   string<, varint<, etc. Higher order functions like list< and map< build and+   return readers.    See https://minecraft.wiki/w/Java_Edition_protocol/Packets#Data_types"   (:require    [clojure.spec.alpha :as s]

src/net/bowmap/server/packet/writers.clj modified (view file)

@@ -1,6 +1,8 @@ (ns net.bowmap.server.packet.writers-  "Functions for writing values into write buffers.-   Functions look like type>, where 'type' is a Minecraft protocol type.+  "Functions for writing packet values into a buffer to build up a frame.+   Writers are named after the encoding they read, suffixed with >, such as+   string>, varint>, etc. Higher order functions like list> and map> build and+   return writers    See https://minecraft.wiki/w/Java_Edition_protocol/Packets#Data_types"   (:require    [clojure.data.json :as json]