#include <gcode_thumb_decoder.h>
◆ SLine()
◆ AppendByte()
◆ Reset()
◆ operator const char *()
SLine::operator const char * |
( |
| ) |
const |
49 return (
const char *)(
l);
◆ IsBeginThumbnail()
bool SLine::IsBeginThumbnail |
( |
| ) |
const |
4 static const char thumbnailBegin[] =
"; thumbnail begin ";
7 const char *lc = (
const char *)
l;
11 if (!strncmp(lc, thumbnailBegin,
12 std::min(
sizeof(
l),
sizeof(thumbnailBegin)) - 1)) {
16 lc = lc +
sizeof(thumbnailBegin) - 1;
17 int ss = sscanf(lc,
"%ux%u %lu", &x, &y, &bytes);
20 if (x == 220 && y == 124) {
◆ IsEndThumbnail()
bool SLine::IsEndThumbnail |
( |
| ) |
const |
30 static const char thumbnailEnd[] =
"; thumbnail end";
32 return !strncmp((
const char *)
l, thumbnailEnd,
33 std::min(
sizeof(
l),
sizeof(thumbnailEnd)) - 1);
◆ MAX
const size_t SLine::MAX = 80 |
|
static |
◆ size
◆ expectedLineSize
size_t SLine::expectedLineSize |