跳转到内容

The Wikibooks community is developing a policy on the use of generative AI. Please review the draft policy and provide feedback on its talk page.

Rebol 编程/write-io

来自,开放的书,为开放的世界

用法

[编辑 | 编辑源代码]
WRITE-IO port buffer length 

描述

[编辑 | 编辑源代码]

低级写入端口。

WRITE-IO 是一个本地值。

参数

[编辑 | 编辑源代码]
  • port -- 已经打开的要写入的端口 (类型:port)
  • buffer -- 用于写入的缓冲区。 (类型:any-string)
  • length -- 要写入的最大字符数 (类型:number)

源代码

[编辑 | 编辑源代码]
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"
]
华夏公益教科书