22 Commits

Author SHA1 Message Date
f1eb6b065d Export all fields in pdu
Oopsie!
2024-07-31 15:12:25 +02:00
38976d6bc8 Add legit test for pdu encoding 2024-07-24 20:58:52 +02:00
2453d639ff Ensure all pdus use pointer to header
All checks were successful
Run Tests / Test (push) Successful in 20s
Benchmark BufferPool / RunBenchmarks (push) Successful in 23s
2024-07-24 19:22:41 +02:00
14c861ccb4 Implement submit encode 2024-07-24 19:20:08 +02:00
500cb11235 Fix the rest of pdu tests
All checks were successful
Run Tests / Test (push) Successful in 28s
Benchmark BufferPool / RunBenchmarks (push) Successful in 38s
2024-07-24 19:12:05 +02:00
f30680c26f Rework every uint8 to byte and rework every []byte to bytes.Buffer
Some checks failed
Benchmark BufferPool / RunBenchmarks (push) Failing after 17s
Run Tests / Test (push) Failing after 15s
I just learnt that uint8 and byte are the fucking same
And that bytes.Buffer is the thing to use
Idiot idiot idiot...
Live and learn
2024-07-24 18:48:12 +02:00
PhatPhuckDave
2759185dbb Refactor bufpool methods 2024-07-23 14:55:49 +02:00
PhatPhuckDave
aff4ffe070 update 2024-07-23 13:41:27 +02:00
PhatPhuckDave
c73a6066c4 Fix pool to uint from int 2024-07-23 09:31:26 +02:00
PhatPhuckDave
3d0d8ce676 Rework encode to return pointer 2024-07-22 23:09:32 +02:00
PhatPhuckDave
abfba3b5a7 Make every struct have a header header and not inherit the header 2024-07-22 22:52:04 +02:00
PhatPhuckDave
98fb872fc1 Rework encode, idiot 2024-07-22 22:49:01 +02:00
PhatPhuckDave
1b904b69fd Implement size in submit_pdu 2024-07-22 22:43:48 +02:00
PhatPhuckDave
785c742ee2 Implement size to pdu header 2024-07-22 22:30:34 +02:00
PhatPhuckDave
73c7266a2f Refactor the decode tests 2024-07-22 22:29:47 +02:00
PhatPhuckDave
4a819f1563 Add more tests for encoding 2024-07-22 22:29:47 +02:00
PhatPhuckDave
35bce83eee Add tests for decode 2024-07-22 22:15:51 +02:00
PhatPhuckDave
8ebca73181 Rework encoding to use go binary 2024-07-22 22:03:46 +02:00
PhatPhuckDave
0ac3f31c3f Add encoding decoding of header 2024-07-22 20:41:18 +02:00
PhatPhuckDave
21e2e17f27 Refactor pdus into many files 2024-07-22 20:35:53 +02:00
PhatPhuckDave
3d977b5657 Add basic pdu definitions 2024-07-22 20:29:03 +02:00
PhatPhuckDave
d572ee1434 Implement basic file structure 2024-07-22 20:01:14 +02:00