String.getBytes()

Last revision:2024/05/14

名称

String.getBytes()

説明

Stringオブジェクト内の文字列を、与えられたバッファ(文字配列)にコピーする。

書式

void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;

引数

bufString内の文字列をコピーするための文字配列。
bufsize
コピーする文字数。
index
コピー元のStringオブジェクトの文字列の開始位置(0が先頭で、 省略した場合は0)。

戻り値

なし。

参照

オリジナルのページ

https://docs.arduino.cc/language-reference/en/variables/data-types/stringObject/Functions/getBytes/

最終更新日

July 22, 2026

inserted by FC2 system