Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Tagged Netstrings

This is an implementation of Tagged Netstrings in racket.

The public interface is provided from "main.rkt".

(read-tnetstring) reads a single tnetstring from current-input-port.

(read-tnetstring port) reads a single tnetstring from port.

(write-tnetstring val) writes val (encoded as a tnetstring) to current-output-port.

(write-tnetstring val port) writes val (encoded as a tnetstring) to port.

(value->bytes/tnetstring val) returns val in a bytestring encoded as a tnetstring.

(bytes->value/tnetstring bstr) returns the valued encoded in bstr as a tnetstring.

This is how the Netstrings types are mapped to racket types.

string     -> bytes
integer    -> exact number
float      -> inexact number
null       -> void
boolean    -> boolean
dictionary -> dict (reads to hash)
list       -> list

The contents of this repo are available under the BSD style license specified in LICENSE

About

An implementation of tnetstrings in racket

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.