time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (582B)


      1 
      2 {{alias}}( key, value )
      3     Revives a JSON-serialized Buffer.
      4 
      5     The serialization format for a Buffer is an object having the following
      6     fields:
      7 
      8     - type: value type (Buffer)
      9     - data: buffer data as an array of integers
     10 
     11     Parameters
     12     ----------
     13     key: string
     14         Key.
     15 
     16     value: any
     17         Value.
     18 
     19     Returns
     20     -------
     21     out: any
     22         Value or Buffer.
     23 
     24     Examples
     25     --------
     26     > var str = '{"type":"Buffer","data":[5,3]}';
     27     > var buf = {{alias:@stdlib/utils/parse-json}}( str, {{alias}} )
     28     <Buffer>[ 5, 3 ]
     29 
     30     See Also
     31     --------
     32