Lines Matching refs:inbuf
406 int packA(char *inbuf, uint32_t length, uint32_t buflen)
415 pack.a = inbuf[i];
416 pack.b = inbuf[i+1];
417 pack.c = inbuf[i+2];
418 pack.d = inbuf[i+3];
419 pack.e = inbuf[i+4];
420 pack.f = inbuf[i+5];
421 pack.g = inbuf[i+6];
422 pack.h = inbuf[i+7];
423 bcopy ((char *) &pack, inbuf + j, 7);
429 void unpackA(char *inbuf, uint32_t length)
436 packs = *(pasc_t *)&inbuf[i];
437 bcopy(&inbuf[i+7], &inbuf[i+8], MAX(0, (int) (length - i - 8)));
438 inbuf[i++] = packs.a;
439 inbuf[i++] = packs.b;
440 inbuf[i++] = packs.c;
441 inbuf[i++] = packs.d;
442 inbuf[i++] = packs.e;
443 inbuf[i++] = packs.f;
444 inbuf[i++] = packs.g;
445 inbuf[i++] = packs.h;