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.