Commit Graph

16 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire a493114373 Encoding
- `encode()` now uses niknaks
2023-10-02 15:37:45 +02:00
Tristan B. Velloza Kildaire aea8ac5bb6 Encoding
- Switched to niknaks for `decode()`
2023-10-02 15:05:33 +02:00
Tristan B. Velloza Kildaire cf62054eb8 Encoding
- Added module-level documentation

Exceptions

- Added module-level documentation

Queue

- Added module-level documentation

Package (`tristanable.manager`)

- Added module-level documentation
2023-04-05 08:47:51 +02:00
Tristan B. Velloza Kildaire 8cf731089e Encoding
- Implemented `toString()` in `TaggedMessage`
2023-03-30 18:26:34 +02:00
Tristan B. Velloza Kildaire 6b04a0325a TaggedMessage
- Added documentation for fields `tag` and `data`
- Added documentation for both constructors
- Added documentation for `getPayload()`, `getTag()`, `setPayload(byte[])` and `setTag(ulong)`
2023-03-27 16:20:26 +02:00
Tristan B. Velloza Kildaire cd0eed6dda Encoding
- Added parameter-less (default) constructor marked as `private` to `TaggedMessage`
- Added decoding support in `decode(byte[])` which will return a new instance of `TaggedMessage`
- Added a unit test to test encoding and decoding
2023-03-27 16:02:39 +02:00
Tristan B. Velloza Kildaire ef95b15a2d Merge branch 'nextgen' of github.com:deavmi/tristanable into nextgen 2023-03-27 15:43:10 +02:00
Tristan B. Velloza Kildaire 83b2a11c80 Encoding
- Added stub class `TaggedMessage`
- Added constructor, static decoder (unimplemented), `encoder (implemented), getters and setters
- Added module `tristanable.encoding`
2023-03-27 15:40:20 +02:00
Tristan B. Velloza Kildaire de44080c6b Package (tristanable)
- Added public imports along with comments per each

Encoding

- Added a stub class, `TaggedMessage`, for encoding and decoding the tristanable byte payload

Exceptions

- Added `TristanableException` exception type along with the `Error` enum sub-type

Manager

- Added stub code for `Manager` to manage the queues and socket

Queue

- Added stub class representing a queue with a tag (`Queue`)

QueueItem

- Added stub class `QueueItem` which represents an item that is enqueued/dequeued onto a `Queue`

Watcher

- Added stub class `Watcher` which will manage the socket reading-wise
2023-03-26 18:22:15 +02:00
Tristan B. Velloza Kildaire 17da826d07 Restarting project 2023-02-26 21:55:13 +02:00
Tristan B. Velloza Kildaire e5a0a280bc Changed API 2021-09-08 20:50:22 +02:00
Tristan B. Kildaire ca63a218c8 Undid that shit 2021-01-30 12:18:45 +02:00
Tristan B. Kildaire e7e82c5491 Fixed visibility issues 2021-01-30 12:18:23 +02:00
Tristan B. Kildaire 2c5d871378 Added comment 2020-10-15 11:34:03 +02:00
Tristan B. Kildaire 96e755d3cc Added `getTag()` and `getData()` and made instance variables private 2020-09-29 19:18:45 +02:00
Tristan B. Kildaire 2dcd0f4fff Encoding library finished 2020-06-23 12:23:10 +02:00