commit aca3635f9a90b1d9b427456d86639abe0a33226d
parent 128f0d6029063d09dc9ad252daaf4378b3914177
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Wed, 30 Apr 2025 20:34:15 +0000
minor edit
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/doc/miniroon_spec.pl b/doc/miniroon_spec.pl
@@ -93,6 +93,8 @@ nonzero_digit(Code) -->
%%% Netstring definitions:
+% Netstring is a self-delimiting encoding of a sequence of bytes (bytestring).
+%
netstring_bytes(PayloadBytes) --> %> Netstring is a sequence of bytes.
{ PayloadBytes will_be sequence_of_bytes },
netstring_prefix_for_payload(PayloadBytes), %> It consists of prefix,
diff --git a/src/netstring.h b/src/netstring.h
@@ -8,7 +8,7 @@
#include "bytebuffer.h"
-typedef struct netstring_chunk_b {
+typedef struct netstring_chunk_s {
bytebuffer source;
bytebuffer outer;
bytebuffer inner;