flatty icon indicating copy to clipboard operation
flatty copied to clipboard

Flatty - tools and serializer for plain flat binary files.

Results 10 flatty issues
Sort by recently updated
recently updated
newest added

These are just some examples, but it extends to any array that does not start at 0. Depending on the array and if `0` can be converted to the index...

With stock Flatty using a subrange type will ignore ranges on parse resulting in invalid values. ```nim import flatty type MyType = object a: 0..3 var str = 10.toFlatty() echo...

On platform where `int` are 32 bits, `toFlatty` (or `fromFlatty` depending on your POV) is incorrect. `fromFlatty` always assumes that an int is 64 bits. ```nim proc fromFlatty*(s: string, i:...

Default uint support. Fixes #34

Hi, I was trying to serialize and deserialize [bloom filter object](https://github.com/dizzyliam/flower/blob/main/src/flower.nim#L17), and deserialization gives me the following error during the compilation: ``` flatty-0.3.4/flatty.nim(171, 23) Error: for a 'var' type a...

So, I admit this errs on the side of yak shaving, and maintainers should feel free to close the issue if they choose not to support this (maybe with a...

I would just do this myself, but I'm on my work computer, so just making a note here that a benchmark comparing flatty to [std/marshal](https://nim-lang.org/docs/marshal.html) is probably warranted.

Just a kind reminder that flatty does not currently work on JavaScript backend, but there is a fix available and waiting for approval: https://github.com/treeform/flatty/pull/42

- Fixes syntax errors by adding a "let" declaration to j loop variables. - Suppresses "unreachable code after return" warnings by adding no-op "if (true)" conditions.

I would expect this to work but I get an error: `Error: undeclared field: 'kind' for type...` ```nim # moduleA.nim type Kinds* = enum A, B, C Obj* = object...