Changeset 35232 in project


Ignore:
Timestamp:
03/04/18 04:57:19 (4 months ago)
Author:
kon
Message:

rel 1.1.0

File:
1 edited

Legend:

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

    r34150 r35232  
    2020==== blob->hex
    2121
    22 <procedure>(blob->hex BLOB [START [END]]) => string</procedure>
     22<procedure>(blob->hex BLOB [START [END]]) -> string</procedure>
    2323
    2424Returns a hexadecimal represenation of {{BLOB}}. {{START}} and {{END}} are
     
    2626
    2727{{BLOB}} is treated as a string of bytes, a byte-vector.
    28 
    2928
    3029=== Blob Set Int
     
    136135Performs no argument checking.
    137136
     137=== Pack- Integer
     138
     139Blob representation as a hexadecimal string.
     140
     141==== Usage
     142
     143<enscript language=scheme>
     144(require-extension pack-integer)
     145</enscript>
     146
     147==== pack-u8
     148
     149<procedure>(pack-u8 N [kind: KIND] [start: START]) -> (or string blob u8vector)</procedure>
     150
     151Returns the number {{N}} packed into an object of {{KIND}}, at position {{START}}.
     152
     153; {{KIND}} : {{(or symbol (or string blob u8vector))}}
     154; {{START}} : {{fixnum}} ; >= 0
     155
     156==== pack-u16
     157
     158<procedure>(pack-u16 N [kind: KIND] [start: START] [order: ORDER]) -> (or string blob u8vector)</procedure>
     159
     160Returns the number {{N}} packed into an object of {{KIND}}, at position {{START}}.
     161
     162; {{KIND}} : {{(or symbol (or string blob u8vector))}}
     163; {{START}} : {{fixnum}} ; {{(<= 0 ...)}}
     164; {{ORDER}} : {{symbol}} ; {{big-endian be big little-endian le little}}
     165
     166==== pack-u32
     167
     168<procedure>(pack-u32 N [kind: KIND] [start: START] [order: ORDER]) -> (or string blob u8vector)</procedure>
     169
     170Returns the number {{N}} packed into an object of {{KIND}}, at position {{START}}.
     171
     172; {{KIND}} : {{(or symbol (or string blob u8vector))}}
     173; {{START}} : {{fixnum}} ; {{(<= 0 ...)}}
     174; {{ORDER}} : {{symbol}} ; {{big-endian be big little-endian le little}}
     175
     176==== pack-u64
     177
     178<procedure>(pack-u64 N [kind: KIND] [start: START] [order: ORDER]) -> (or string blob u8vector)</procedure>
     179
     180Returns the number {{N}} packed into an object of {{KIND}}, at position {{START}}.
     181
     182; {{KIND}} : {{(or symbol (or string blob u8vector))}}
     183; {{START}} : {{fixnum}} ; {{(<= 0 ...)}}
     184; {{ORDER}} : {{symbol}} ; {{big-endian be big little-endian le little}}
     185
     186==== pack-integer
     187
     188<procedure>(pack-integer N [kind: KIND] [start: START] [order: ORDER]) -> (or string blob u8vector)</procedure>
     189
     190Returns the number {{N}} packed into an object of {{KIND}}, at position {{START}}.
     191
     192; {{KIND}} : {{(or symbol (or string blob u8vector))}}
     193; {{START}} : {{fixnum}} ; {{(<= 0 ...)}}
     194; {{ORDER}} : {{symbol}} ; {{big-endian be big little-endian le little}}
     195
    138196
    139197== Requirements
    140198
    141199[[string-utils]]
     200[[check-errors]]
     201
     202[[setup-helper]]
     203[[test]]
    142204
    143205
     
    149211== Version history
    150212
    151 ; 1.0.4 : .
     213; 1.1.0 : Added {{pack-integer}} module.
     214; 1.0.4 :
    152215; 1.0.3 : Reverted 64 bit support.
    153216; 1.0.2 : Removed 64 bit support.
     
    158221== License
    159222
    160 Copyright (C) 2012-2017 Kon Lovett.  All rights reserved.
     223Copyright (C) 2012-2018 Kon Lovett.  All rights reserved.
    161224
    162225Permission is hereby granted, free of charge, to any person obtaining a
Note: See TracChangeset for help on using the changeset viewer.