Simon Tatham
cc6d3591ad
Marshalling macros put_dataz and put_datalit.
...
When I wanted to append an ordinary C string to a BinarySink, without
any prefix length field or suffix terminator, I was using the idiom
put_datapl(bs, ptrlen_from_asciz(string));
but I've finally decided that's too cumbersome, and it deserves a
shorter name. put_dataz(bs, string) now does the same thing - in fact
it's a macro expanding to exactly the above.
While I'm at it, I've also added put_datalit(), which is the same
except that it expects a C string literal (and will enforce that at
compile time, via PTRLEN_LITERAL which it calls in turn). You can use
that where possible to avoid the run-time cost of the strlen.
2021-11-19 15:09:17 +00:00
..
2021-11-19 11:32:47 +00:00
2021-05-13 18:22:05 +01:00
2021-05-08 17:51:27 +01:00
2021-05-24 15:27:38 +01:00
2021-10-30 17:29:24 +01:00
2021-05-22 14:13:52 +01:00
2021-10-30 17:28:28 +01:00
2021-11-06 14:48:26 +00:00
2021-04-26 18:00:01 +01:00
2021-04-26 18:00:01 +01:00
2021-11-19 15:09:17 +00:00
2021-07-01 18:59:44 +01:00
2021-09-30 19:16:20 +01:00
2021-11-06 14:48:26 +00:00
2021-05-27 09:48:32 +01:00
2021-04-26 18:00:01 +01:00
2021-10-18 20:15:35 +01:00
2021-04-26 18:00:01 +01:00
2021-05-03 17:01:55 +01:00
2021-05-08 17:20:50 +01:00
2021-10-30 17:29:24 +01:00
2020-06-21 16:39:47 +01:00
2020-06-21 16:39:47 +01:00
2021-10-30 17:29:24 +01:00
2021-10-30 17:29:24 +01:00
2021-11-06 14:48:26 +00:00
2021-04-26 18:00:01 +01:00
2021-04-26 18:00:01 +01:00
2021-04-26 18:00:01 +01:00
2021-04-22 20:00:46 +01:00
2021-11-19 11:32:47 +00:00
2007-01-07 10:17:12 +00:00
2019-09-08 20:29:21 +01:00
2021-04-26 18:00:01 +01:00
2007-01-07 10:17:12 +00:00
2021-11-06 14:48:26 +00:00
2021-11-19 15:09:17 +00:00
2005-10-04 14:13:28 +00:00
2021-04-26 18:00:01 +01:00
2007-01-07 10:17:12 +00:00
2005-10-04 14:13:28 +00:00
2005-10-04 14:13:28 +00:00
2021-04-26 18:00:01 +01:00
2021-10-18 20:15:35 +01:00
2021-05-08 17:33:25 +01:00
2021-05-08 17:51:27 +01:00
2021-05-08 17:33:25 +01:00
2021-09-16 14:33:59 +01:00
2021-09-16 14:33:59 +01:00
2021-05-08 17:20:50 +01:00
2007-01-07 10:17:12 +00:00
2021-04-02 19:04:19 +01:00
2021-05-08 17:33:25 +01:00
2007-01-07 10:17:12 +00:00
2021-02-23 18:26:50 +00:00
2021-07-01 18:30:25 +01:00
2007-01-07 10:17:12 +00:00
2019-09-08 20:29:21 +01:00
2021-04-26 18:00:01 +01:00
2007-02-06 22:39:15 +00:00
2021-04-02 19:04:19 +01:00
2021-05-08 17:33:25 +01:00
2021-04-17 13:53:02 +01:00
2019-03-18 21:53:45 +00:00
2021-04-26 18:00:01 +01:00
2021-04-26 18:00:01 +01:00
2021-04-26 18:00:01 +01:00
2021-10-30 17:28:28 +01:00
2021-09-14 13:19:33 +01:00
2021-10-30 17:29:24 +01:00
2020-02-16 11:26:21 +00:00
2021-11-19 11:32:47 +00:00
2021-04-26 18:00:01 +01:00
2019-03-18 22:02:13 +00:00
2017-05-07 16:29:01 +01:00
2021-04-26 18:00:01 +01:00
2021-11-19 11:32:47 +00:00
2021-04-26 18:00:01 +01:00