Changeset 35388 in project


Ignore:
Timestamp:
04/09/18 22:44:29 (2 weeks ago)
Author:
kon
Message:

rel 1.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/blob-utils

    r35232 r35388  
    77
    88== Documentation
     9
     10==== Usage
     11
     12<enscript language=scheme>
     13(require-extension blob-utils)
     14</enscript>
     15
     16==== bytes->hexstring
     17
     18<procedure>(bytes->hexstring BV [START [END]]) -> string</procedure>
     19
     20Returns a hexadecimal represenation of {{BV}}.
     21
     22; {{BV}} : {{(or string blob srfi-4-vector)}}
     23; {{START}} : {{fixnum}} ; 0..<last>
     24; {{END}} : {{fixnum}} ; 0..<end>
     25
     26==== bytes-set-u8
     27==== bytes-set-s8
     28
     29<procedure>(bytes-set-u8! BV IDX UINT)</procedure>
     30<procedure>(bytes-set-s8! BV IDX INT)</procedure>
     31
     32; {{BV}} : {{(or string blob srfi-4-vector)}}
     33; {{IDX}} : {{fixnum}} ; 0..<last>
     34; {{UINT}} : {{fixnum}} ; 0..(2^8)-1
     35; {{INT}} : {{fixnum}} ; -(2^7)..(2^7)-1
     36
     37==== bytes-set-u16
     38==== bytes-set-s16
     39
     40<procedure>(bytes-set-u16! BV IDX UINT)</procedure>
     41<procedure>(bytes-set-s16! BV IDX INT)</procedure>
     42
     43; {{BV}} : {{(or string blob srfi-4-vector)}}
     44; {{IDX}} : {{fixnum}} ; 0..<last>
     45; {{UINT}} : {{fixnum}} ; 0..(2^16)-1
     46; {{INT}} : {{fixnum}} ; -(2^15)..(2^15)-1
     47
     48==== bytes-set-u32
     49==== bytes-set-s32
     50
     51<procedure>(bytes-set-u32! BV IDX UINT)</procedure>
     52<procedure>(bytes-set-s32! BV IDX INT)</procedure>
     53
     54; {{BV}} : {{(or string blob srfi-4-vector)}}
     55; {{IDX}} : {{fixnum}} ; 0..<last>
     56; {{UINT}} : {{number}} ; 0..(2^32)-1
     57; {{INT}} : {{number}} ; -(2^31)..(2^31)-1
     58
     59==== bytes-set-u64
     60==== bytes-set-s64
     61
     62<procedure>(bytes-set-u64! BV IDX UINT)</procedure>
     63<procedure>(bytes-set-s64! BV IDX INT)</procedure>
     64
     65; {{BV}} : {{(or string blob srfi-4-vector)}}
     66; {{IDX}} : {{fixnum}} ; 0..<last>
     67; {{UINT}} : {{number}} ; 0..(2^64)-1
     68; {{INT}} : {{number}} ; -(2^63)..(2^63)-1
    969
    1070=== Blob Hexadecimal
     
    2282<procedure>(blob->hex BLOB [START [END]]) -> string</procedure>
    2383
    24 Returns a hexadecimal represenation of {{BLOB}}. {{START}} and {{END}} are
    25 subbyte limits.
    26 
    27 {{BLOB}} is treated as a string of bytes, a byte-vector.
     84Returns a hexadecimal represenation of the {{BLOB}} bytes.
     85
     86; {{BLOB}} : {{blob}}
     87; {{START}} : {{fixnum}} ; 0..<last>
     88; {{END}} : {{fixnum}} ; 0..<end>
    2889
    2990=== Blob Set Int
     
    135196Performs no argument checking.
    136197
    137 === Pack- Integer
    138 
    139 Blob representation as a hexadecimal string.
     198=== Pack Integer
     199
     200Set integer in blob.
    140201
    141202==== Usage
     
    152213
    153214; {{KIND}} : {{(or symbol (or string blob u8vector))}}
    154 ; {{START}} : {{fixnum}} ; >= 0
     215; {{START}} : {{fixnum}} ; 0..<last>
    155216
    156217==== pack-u16
     
    195256
    196257
     258== Notes
     259
     260* The {{pack-int}} & {{blob-utils}} APIs overlap.
     261
     262* The {{pack-int}} API should be bit-indexed.
     263
     264
    197265== Requirements
    198266
     
    211279== Version history
    212280
     281; 1.2.0 : Added {{blob-utils}} module.
    213282; 1.1.0 : Added {{pack-integer}} module.
    214283; 1.0.4 :
Note: See TracChangeset for help on using the changeset viewer.