Rebol Programming/write-io

From Wikibooks, open books for an open world
Jump to navigation Jump to search

USAGE:[edit | edit source]

WRITE-IO port buffer length 

DESCRIPTION:[edit | edit source]

Low level write to a port.

WRITE-IO is a native value.

ARGUMENTS[edit | edit source]

  • 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 | edit source]

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"
]