buffer?
vSummary
Test whether val is a buffer
Description
Buffers are just modifiable chunks of memory
Arguments
val
This argument is going to be tested
Return value
Whether val is a buffer
Examples
(buffer? (array/new #nil)) #f (buffer? "asd") #f (buffer? #m00) #t
Bytecode
Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.
( 0 ($push/val :buffer)) ( 2 ($get/val 'type-of)) ( 4 ($get/val 'v)) ( 6 ($apply 1)) ( 8 ($=)) ( 9 ($ret))