REBOL Programming/write-io

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

WRITE-IO port buffer length 

DESCRIPTION:[edit]

Low level write to a port.

WRITE-IO is a native value.

ARGUMENTS[edit]

  • port -- Already opened port to write to (Type: port)
  • buffer -- Buffer to use for write. (Type: any-string)
  • length -- Maximum number of chars to write (Type: number)

SOURCE CODE[edit]

write-io: native[
    "Low level write to a port." 
    port [port!] "Already opened port to write to" 
    buffer [any-string!] "Buffer to use for write." 
    length [number!] "Maximum number of chars to write"
]