MCPcopy Create free account
hub / github.com/bitfieldaudio/OTTO / input_buffer_adapter

Method input_buffer_adapter

external/include/json.hpp:1494–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1492{
1493 public:
1494 input_buffer_adapter(const char* b, const std::size_t l)
1495 : cursor(b), limit(b + l), start(b)
1496 {
1497 // skip byte order mark
1498 if (l >= 3 and b[0] == '\xEF' and b[1] == '\xBB' and b[2] == '\xBF')
1499 {
1500 cursor += 3;
1501 }
1502 }
1503
1504 // delete because of pointer members
1505 input_buffer_adapter(const input_buffer_adapter&) = delete;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected