Commit graph

30 commits

Author SHA1 Message Date
Jonathan Barrow
359eb435c2
refactor(types): simplify CopyRef() to use Copy() internally 2024-11-17 14:36:06 -05:00
Jonathan Barrow
d3b7a0175f
chore: make CopyRef do safer, full, copies 2024-11-16 23:48:42 -05:00
Jonathan Barrow
b36470e680
feat: add CopyRef and Deref methods to RVType(Ptr) 2024-11-16 10:16:37 -05:00
Jonathan Barrow
a4b341dab5
chore(types): update Godoc comment on StationURL.URL 2024-06-13 10:40:31 -04:00
Jonathan Barrow
a1ca41e880
fix(types): add address and port validation in StationURL 2024-06-13 10:37:45 -04:00
Jonathan Barrow
88c51d6f3a
fix(types): make StationURL.Format a pointer receiver 2024-06-13 09:37:23 -04:00
Jonathan Barrow
2c2dd7a3bd
fix(types): add url length checks for StationURL 2024-06-13 09:36:25 -04:00
Jonathan Barrow
9373fd8723
refactor(types): add StationURL.SetURL and URL, and more accurate implementation 2024-06-13 09:05:44 -04:00
Jonathan Barrow
7f5a097a92
refactor(types): only call ensureFields in StationURL.ExtractFrom 2024-06-13 08:49:39 -04:00
Jonathan Barrow
d19d660033
fix(types): make StationURL check if custom map is nil before accessing 2024-06-11 18:01:16 -04:00
Jonathan Barrow
2c48000d5f
feat(types): add support for custom parameters in StationURLs 2024-06-11 17:58:57 -04:00
Jonathan Barrow
d668caac02
fix(types): rename FromString to Parse on StationURL and reject unknown schemes 2024-06-11 17:42:06 -04:00
Jonathan Barrow
8271f9acfb
chore(types): rename EncodeToString to Format on StationURL 2024-06-11 17:31:48 -04:00
Jonathan Barrow
7dafc92ffc
fix(types): make StationURL check if map is nil before accessing 2024-06-10 18:03:41 -04:00
Jonathan Barrow
ab4dbfcd52
chore(types): remove pointer from StationURL.SetPrincipalID 2024-06-07 17:02:49 -04:00
Jonathan Barrow
bfe9c9c702
chore(types): remove old Value and LegacyValue methods on PID 2024-06-07 16:59:18 -04:00
Jonathan Barrow
832bd19751
refactor(types): remove reliance on pointers 2024-06-05 17:24:00 -04:00
Jonathan Barrow
3c28fb75de
refactor(types): make String into a type alias 2024-06-02 15:20:27 -04:00
Daniel López Guimaraes
509b274086
station-url: Set flags when calling FromString 2024-04-10 19:38:29 +01:00
Daniel López Guimaraes
d5df60ef58
chore: Update module version to v2 2024-04-07 23:40:51 +01:00
Jonathan Barrow
58526f8a1a
prudp: fix StationURL.PlatformType comment 2024-04-01 22:00:02 -04:00
Daniel López Guimaraes
2ccb21dfd6
StationURL: Use strings.Cut for extracting parameters
This avoids crashes when a field with no value is given. This popped up
on Mario Kart 7.
2024-03-26 23:15:55 +00:00
Daniel López Guimaraes
a0d9eacb86
types/station_url: Remove unused parameter for Address getter 2024-03-17 22:29:58 +00:00
Jonathan Barrow
bfadcf1fc2
chore: StationURL does actually have a Remove method 2024-03-16 12:00:41 -04:00
Jonathan Barrow
ce2526f3dd
chore: spelling in StationURL comments 2024-03-16 11:59:50 -04:00
Jonathan Barrow
dde9a9921d
prudp: more accurate StationURL implementation 2024-03-16 11:49:41 -04:00
Jonathan Barrow
2c4d6aa662
types: update Godoc comments 2024-01-07 16:18:32 -05:00
Daniel López Guimaraes
03434ad777
types: Use RV types for AnyDataHolder and Variant
Also fix a typo in the `ExtractFrom` funcions.
2023-12-27 23:07:51 +00:00
Daniel López Guimaraes
34fa2d53de
types: Replace type aliases with struct wrappers
Also remove StructureInterface, and make all structures initialize all
their fields. The structure header is now added as a common function
`ExtractHeaderFrom` and `WriteHeaderTo`.
2023-12-27 22:16:06 +00:00
Jonathan Barrow
715e3182cd
expanded all types into dedicated files and made the stream API generic 2023-12-23 13:03:32 -05:00