Quirrel4.41.0

iostream.blob.flush

Method of blob, from module "iostream"
instance.flush(): int|null

Flushes the stream and returns non-null on success

Return value

See iostream.stream.flush for the generic contract. On a blob this always returns a non-null success.

Example

examples/iostream/blob/flush.nut
from "iostream" import blob

let b = blob(3)
println(b.flush())   // always succeeds; a blob has nothing to flush
Output:
1

See also

flushFlushes the stream and returns non-null on success
blobclass index