CrossClj

0.2.3 docs

SourceDocs



RECENT
    VARS
    ->KeywordHandler
    ->ListHandler
    ->MapBuilder
    ->MapHandler
    ->SetHandler
    ->SymbolHandler
    ->t22325
    ->UUIDHandler
    ->VectorBuilder
    ->VectorHandler
    bigdec
    bigdec?
    bigint
    bigint?
    binary
    binary?
    integer
    integer?
    KeywordHandler
    link
    link?
    ListHandler
    MapBuilder
    MapHandler
    opts-merge
    quoted
    quoted?
    read
    read-handler
    reader
    SetHandler
    SymbolHandler
    t22325
    tagged-value
    tagged-value?
    uri
    uri?
    uuid
    uuid?
    UUIDHandler
    VectorBuilder
    VectorHandler
    write
    write-handler
    writer

    « Index of all namespaces of this project

    (->t22325 tag-fn rep-fn str-rep-fn verbose-handler-fn meta22326)
    (bigdec s)
    Construct a big decimal from a string.
    
    (bigdec? x)
    Returns true if x is a transit big decimal value, false otherwise.
    
    (bigint s)
    Construct a big decimal from a string.
    
    (bigint? x)
    Returns true if x is a transit big decimal value, false otherwise.
    
    (binary s)
    Construct a transit binary value. s should be base64 encoded
    string.
    (binary? x)
    Returns true if x is a transit binary value, false otherwise.
    
    (integer s)
    Construct a transit integer value. Returns JavaScript number if
    in the 53bit integer range, a goog.math.Long instance if above. s
    may be a string or a JavaScript number.
    (integer? x)
    Returns true if x is an integer value between the 53bit and 64bit
    range, false otherwise.
    (link x)
    Construct a transit link value. x should be an IMap instance
    containing at a minimum the following keys: :href, :rel. It
    may optionall include :name, :render, and :prompt. :href must
    be a transit URI, all other values are strings, and :render must
    be either :image or :link.
    (link? x)
    Returns true if x a transit link value, false if otherwise.
    
    (opts-merge a b)
    (quoted x)
    Construct a quoted transit value. x should be a transit
    encodeable value.
    (quoted? x)
    Returns true if x is a transit quoted value, false otherwise.
    
    (read r str)
    Read a transit encoded string into ClojureScript values given a 
    transit reader.
    (read-handler from-rep)
    Construct a read handler. Implemented as identity, exists primarily
    for API compatiblity with transit-clj
    (reader type)(reader type opts)
    Return a transit reader. type may be either :json or :json-verbose.
    opts may be a map optionally containing a :handlers entry. The value
    of :handlers should be map from tag to a decoder function which returns
    then in-memory representation of the semantic transit value.
    (tagged-value tag rep)
    Construct a tagged value. tag must be a string and rep can
    be any transit encodeable value.
    (tagged-value? x)
    Returns true if x is a transit tagged value, false otherwise.
    
    (uri s)
    Construct a URI from a string.
    
    (uri? x)
    Returns true if x is a transit URI value, false otherwise.
    
    (uuid s)
    Construct a UUID from a string.
    
    (uuid? x)
    Returns true if x is a transit UUID value, false otherwise.
    
    (write w o)
    Encode an object into a transit string given a transit writer.
    
    (write-handler tag-fn rep-fn)(write-handler tag-fn rep-fn str-rep-fn)(write-handler tag-fn rep-fn str-rep-fn verbose-handler-fn)
    Creates a transit write handler whose tag, rep,
    stringRep, and verboseWriteHandler methods
    invoke the provided fns.
    (writer type)(writer type opts)
    Return a transit writer. type maybe either :json or :json-verbose.
    opts is a map containing a :handlers entry. :handlers is a JavaScript
    array of interleaved type constructors and handler instances for those 
    type constructors.