JanetDocsPlaygroundI'm feeling luckyGitHub sign in

buffer/new



    cfunction
    src/core/buffer.c on line 168, column 1

    (buffer/new capacity)

    Creates a new, empty buffer with enough backing memory for 
    `capacity` bytes. Returns a new buffer of length 0.


1 exampleSign in to add an example
Loading...
(def new-bytes 512)

(var new-buffer (buffer/new new-bytes))

# --> @""
MorganPetersonPlayground