xous-core/services/pddb/src
bunnie 4c927f2c99 fix name records so they encode a length
This is one of the truly redeeming features of Rust is that a
major refactor of a core structure like this doesn't leave me
shaking in my boots -- I feel pretty good that this works
since everything passes the CI tests.

The original FS implementation did the "stupid C thing" which
just creates a fixed lenth field and uses null-terminated C
strings. Which actually restricts PDDB entry names to be ascii
as valid UTF-8 can encode single-byte nulls.

The intention was for names to be fully utf-8 compliant, but in
order to do that we have to burn one byte of potential filename
length and encode an overall length field for the name strings.

This change does that, which both makes the code a bit safer
at the expense of losing a character off of the maximum filename
length.
2022-01-06 18:53:01 +08:00
..
backend fix name records so they encode a length 2022-01-06 18:53:01 +08:00
frontend fix an issue where we don't decrement the connection counter on drop 2022-01-05 20:01:54 +08:00
api.rs fix name records so they encode a length 2022-01-06 18:53:01 +08:00
backend.rs clean up some warnings before moving on to further integration 2022-01-02 15:07:48 +08:00
frontend.rs commit to journal of bad ideas issue #243: a misguided attempt at a PDDB API. 2021-10-31 22:58:20 +08:00
lib.rs fix name records so they encode a length 2022-01-06 18:53:01 +08:00
main.rs fix name records so they encode a length 2022-01-06 18:53:01 +08:00
tests.rs fix name records so they encode a length 2022-01-06 18:53:01 +08:00
ux.rs add interlocking so multiple threads don't interfere with each other 2021-12-17 01:55:36 +08:00