Commit graph

76 commits

Author SHA1 Message Date
Daniel López Guimaraes
be12609cc1
chore: Move DataHolder into its own file 2025-01-11 22:37:31 +00:00
Daniel López Guimaraes
9c8f7bd62e
chore(AnyObjectHolder): Inline cast check 2025-01-11 22:37:00 +00:00
Daniel López Guimaraes
340b851e5f
refactor: Replace AnyDataHolder with AnyObjectHolder 2025-01-09 23:21:11 +00:00
Daniel López Guimaraes
eee4fc9e88
fix(AnyDataHolder): Use CopyRef to get RVTypePtr of object data
The previous method didn't work because it was making a pointer of the
RVType interface instead of the underlying data.
2024-12-24 13:08:01 +00:00
Jonathan Barrow
359eb435c2
refactor(types): simplify CopyRef() to use Copy() internally 2024-11-17 14:36:06 -05:00
Jonathan Barrow
337fdcdbc4
chore: add method comments to RVType and RVTypePtr interfaces 2024-11-16 23:52:42 -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
182418f999
feat: add struct tags to struct types 2024-07-03 23:39:23 -04:00
Jonathan Barrow
b57adeb748
refactor: remove references to "Primitive" naming conventions 2024-06-16 11:52:39 -04: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
99acae026c
refactor(types): make Map into a type alias 2024-06-04 14:48:57 -04:00
Jonathan Barrow
1f8c5ffeba
fix(types): remove recursive String call in List type 2024-06-02 15:48:48 -04:00
Jonathan Barrow
943f141096
fix(types): remove recursive String call in String type 2024-06-02 15:48:24 -04:00
Jonathan Barrow
8d306f43f4
refactor(types): make List into a type alias 2024-06-02 15:42:03 -04:00
Jonathan Barrow
446a730e4c
fix(types): fix bad Copy methods 2024-06-02 15:20:29 -04:00
Jonathan Barrow
885121a678
refactor(types): make QUUID into a type alias 2024-06-02 15:20:28 -04:00
Jonathan Barrow
c1aa55c3ba
fix(types): QBuffer.Equals should not be a pointer 2024-06-02 15:20:28 -04:00
Jonathan Barrow
3c28fb75de
refactor(types): make String into a type alias 2024-06-02 15:20:27 -04:00
Jonathan Barrow
feca72a672
refactor(types): make QResult into a type alias 2024-06-02 15:20:27 -04:00
Jonathan Barrow
502b6011c6
refactor(types): make PID into a type alias 2024-06-02 15:20:27 -04:00
Jonathan Barrow
d5feb922f4
refactor(types): make DateTime into a type alias 2024-06-02 15:20:26 -04:00
Jonathan Barrow
7998d1469d
refactor(types): make QBuffer into a type alias 2024-06-02 15:20:26 -04:00
Jonathan Barrow
2a775ebf35
refactor(types): make Buffer into a type alias 2024-06-02 15:20:25 -04:00
Jonathan Barrow
7bc3579294
refactor(types): make primitive types into type aliases 2024-06-02 15:20:20 -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
Jonathan Barrow
29b24b93bb
types: add OOB check in List.SetIndex 2024-03-29 21:20:51 -04:00
Jonathan Barrow
02078bf185
types: fix primitive number type shift methods 2024-03-29 21:18:39 -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
ab069f3410
chore: formatting 2024-03-15 13:17:00 -04:00
Daniel López Guimaraes
9215e65ec3
chore: bugfixes and cleanup 2024-02-11 14:44:16 +00:00