chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ca964a
)
document some undocumented hbytes ops
author
ian
<ian>
Sun, 5 Oct 2003 18:44:31 +0000
(18:44 +0000)
committer
ian
<ian>
Sun, 5 Oct 2003 18:44:31 +0000
(18:44 +0000)
base/chiark-tcl.h
patch
|
blob
|
history
hbytes/hbytes.h
patch
|
blob
|
history
diff --git
a/base/chiark-tcl.h
b/base/chiark-tcl.h
index afdae9a37e25c863b43c04a9371bb0919e5c0577..10141825f3f3d1f35fd052014e8e7436edba378c 100644
(file)
--- a/
base/chiark-tcl.h
+++ b/
base/chiark-tcl.h
@@
-17,6
+17,9
@@
* hbytes overwrite VAR START VALUE
* hbytes trimleft VAR removes any leading 0 octets
* hbytes repeat VALUE COUNT => COUNT copies of VALUE
* hbytes overwrite VAR START VALUE
* hbytes trimleft VAR removes any leading 0 octets
* hbytes repeat VALUE COUNT => COUNT copies of VALUE
+ * hbytes zeroes COUNT => COUNT zero bytes
+ * hbytes random COUNT => COUNT random bytes
+ * hbytes xor VAR VALUE $VAR (+)= VALUE
*
* hbytes ushort2h LONG => LONG must be <2^16, returns as hex
* hbytes h2ushort HEX => |HEX| must be 2 bytes, returns as ulong
*
* hbytes ushort2h LONG => LONG must be <2^16, returns as hex
* hbytes h2ushort HEX => |HEX| must be 2 bytes, returns as ulong
diff --git
a/hbytes/hbytes.h
b/hbytes/hbytes.h
index afdae9a37e25c863b43c04a9371bb0919e5c0577..10141825f3f3d1f35fd052014e8e7436edba378c 100644
(file)
--- a/
hbytes/hbytes.h
+++ b/
hbytes/hbytes.h
@@
-17,6
+17,9
@@
* hbytes overwrite VAR START VALUE
* hbytes trimleft VAR removes any leading 0 octets
* hbytes repeat VALUE COUNT => COUNT copies of VALUE
* hbytes overwrite VAR START VALUE
* hbytes trimleft VAR removes any leading 0 octets
* hbytes repeat VALUE COUNT => COUNT copies of VALUE
+ * hbytes zeroes COUNT => COUNT zero bytes
+ * hbytes random COUNT => COUNT random bytes
+ * hbytes xor VAR VALUE $VAR (+)= VALUE
*
* hbytes ushort2h LONG => LONG must be <2^16, returns as hex
* hbytes h2ushort HEX => |HEX| must be 2 bytes, returns as ulong
*
* hbytes ushort2h LONG => LONG must be <2^16, returns as hex
* hbytes h2ushort HEX => |HEX| must be 2 bytes, returns as ulong