check-stream-read-unsafe-before ( n buf stream word -- n buf stream )


Vocabulary
tools.annotations.assertions

Inputs
nan object
bufan object
streaman object
wordan object


Outputs
nan object
bufan object
streaman object


Definition


:: check-stream-read-unsafe-before
( n buf stream word -- n buf stream )
buf alien?
[ n buf port ] [
n buf byte-length >
[ n buf stream word invalid-stream-read-unsafe ]
[ n buf stream ] if
] if ; inline