blob: fa9b5423146bb95a9375b7a8720deea6509d8bd2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
int
libterminput_marshal_text__(struct libterminput_marshaller *how, const struct libterminput_text *what)
{
if (how->store(how, &what->nbytes, sizeof(what->nbytes)) ||
how->store(how, what->bytes, sizeof(what->nbytes)))
return -1;
return 0;
}
|