# SmplBuf\_ByteSL\<N>

```cpp
template <int N> using SmplBuf_ByteSL =
SimpleBufferL<uint8_t, N, TWE::IStreamOut, 1>;
```

`uint8_t`型のバイト配列ですが、メモリ確保をローカル変数とします。一時的なオブジェクトして利用することを想定しています。

また`IStreamOut`を継承しているため`<<`演算子などを利用したバッファへのデータ投入が可能です。`wchar_t`型の文字列に対してはUTF-8への変換を行います。

```cpp
SmplBuf_ByteSL<64> t;

t << "hello";
t << printfmt("-%d", 123);

t.clear();
t << L"こんにちわ"; // convert into UTF-8

t.clear();
t << SmplBuf_WChar(L"こんにちは");
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mwm5.twelite.info/0.9-1/references/basics/tweutils/simplebuffer/smplbuf_bytesl-less-than-int-greater-than.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
