clj-artnet.impl.protocol.codec.dispatch
Central opcode dispatch for Art-Net packet encoding and decoding. Routes to domain-specific handlers while maintaining the original public API contract.
decode
(decode buf)Decode an Art-Net frame from buf. ArtDmx returns a flyweight packet and control packets return immutable maps.
encode
(encode packet)(encode {:keys [op data], :as packet} buf)Encode a packet map into a ByteBuffer ready for transmission. Supply buf to reuse an existing buffer and avoid allocations on the hot path.