Skip to content

msultra/encoder

Repository files navigation


msultra/encoder
Encoder - Part of MsUltra

Library that implements binary encoding and decoding, and some other utilities.


This library is used to encode and decode binary data. Basic usage can be summarized as:

struct A {
    Field1 [4]byte
    Field2 uint32
}

a := A{
    Field1: [4]byte{1, 2, 3, 4},
    Field2: 1234,
}

bs, err := encoder.Marshal(a)
if err != nil {
    panic(err)
}

fmt.Println(bs) // Output: 01020304d2040000

About

Library that implements binary encoding and decoding, and some other utilities.

Resources

Stars

Watchers

Forks

Languages