getBytes()
描述
将字串转换成 byte 阵列。
语法
string.getBytes(buf, len)
参数
string
: String 物件 (字串)
buf
: 指定的阵列 (byte [] 型别)
len
: 阵列的长度 (unsigned int 型别)
回传
无回传值
See also
- String
- toCharArray()
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.