gs-std/src/main/scala/gs/std/v0/Decoder.scala
Pat Garrity df41b9bf01
All checks were successful
/ Build and Release Library (push) Successful in 1m38s
First run of pre-commit.
2026-04-25 22:46:40 -05:00

13 lines
315 B
Scala

package gs.std.v0
/** Interface for byte decoding from encoded String formats.
*/
trait Decoder[-A <: EncodedString]:
/** Decode an input string to an array of bytes.
*
* @param input
* The input to decode.
* @return
* The decoded byte array.
*/
def decode(input: A): Array[Byte]