chiark / gitweb /
hbytes range
[chiark-tcl.git] / base / tables-examples.tct
index 71cb4bf3935bb88a76524bad4c1a2a61e94c9dce..b5a104b825409384e6a206df5bde3175996ecd46 100644 (file)
@@ -9,6 +9,7 @@ Type sockaddr:                  SockAddr_Value @
 Init sockaddr                  sockaddr_clear(&@);
 
 Type sockid:                   DgramSockID @
+Type ulong:                    unsigned long @
 
 H-Include      "hbytes.h"
 
@@ -27,9 +28,30 @@ Table hbytes HBytes_SubCommand
        h2raw
                hex     hb
                =>      obj
+       ulong2h
+               value   ulong
+               =>      hb
+       h2ulong
+               hex     hb
+               =>      ulong
+       ushort2h
+               value   ulong
+               =>      hb
+       h2ushort
+               hex     hb
+               =>      ulong
        length
                v       hb
                =>      int
+       compare
+               a       hb
+               b       hb
+               =>      int
+       range
+               v       hb
+               start   int
+               size    int
+               =>      hb
        prepend
                v       hbv
                str     ...