codec
A piece of code that encodes data into a format and decodes it back, such as a compression algorithm or a packet parser.
In more detail
The word joins coder and decoder. Examples include gzip for compression and UTF-8 decoders for text.
Related terms
- compression — Encoding data in fewer bytes by removing repetition, so it takes less space and less time to send.
- character encoding — The rule for turning text characters into bytes and back, such as UTF-8.
Taught in
- Buffer Encodings: UTF-8, Hex, Base64 & Slicing — Node.js Internals & Backend Services
- Native Compression: node:zlib & Streaming Codecs — Node.js Internals & Backend Services
- Transform Streams: Custom Packet Decoding & Codecs — Node.js Internals & Backend Services