aboutsummaryrefslogtreecommitdiff
path: root/src/tracker_protocol.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-11-11 20:47:46 +0000
committerMartin Ashby <martin@ashbysoft.com>2023-11-11 20:47:46 +0000
commite92459156c2f74de648566ca7acde3833de33425 (patch)
tree59d0bb42d23db0d295a0ef0a97e31e71b8f592cd /src/tracker_protocol.zig
parentdff4234bf2d957a0328ff4f3dc4f9bba1fbeffd4 (diff)
downloadzbt-e92459156c2f74de648566ca7acde3833de33425.tar.gz
zbt-e92459156c2f74de648566ca7acde3833de33425.tar.bz2
zbt-e92459156c2f74de648566ca7acde3833de33425.tar.xz
zbt-e92459156c2f74de648566ca7acde3833de33425.zip
Include ownership info on BValue.
It's a bit cumbersome, but it caters for the two situations: a. parsing from a stream where strings must be copied into the structure and owned, and b. constructing from application code where strings must _not_ be freed. Either way, the base structures (array list, hash map) are always owned and must be freed. Add method and test for info hash
Diffstat (limited to 'src/tracker_protocol.zig')
0 files changed, 0 insertions, 0 deletions