Lines Matching +full:binary +full:- +full:coded

3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
8 * Redistribution and use in source and binary forms, with or without
14 * * Redistributions in binary form must reproduce the above
39 * These are the "generic" xdr routines used to serialize and de-serialize
54 #include "un-namespace.h"
100 switch (xdrs->x_op) {
128 switch (xdrs->x_op) {
151 * same as xdr_u_long - open coded to save a proc call!
156 switch (xdrs->x_op) {
170 * same as xdr_long - open coded to save a proc call!
175 switch (xdrs->x_op) {
189 * XDR 32-bit integers
190 * same as xdr_u_int32_t - open coded to save a proc call!
197 switch (xdrs->x_op) {
218 * XDR unsigned 32-bit integers
219 * same as xdr_int32_t - open coded to save a proc call!
226 switch (xdrs->x_op) {
247 * XDR unsigned 32-bit integers
248 * same as xdr_int32_t - open coded to save a proc call!
255 switch (xdrs->x_op) {
283 switch (xdrs->x_op) {
311 switch (xdrs->x_op) {
333 * XDR 16-bit integers
340 switch (xdrs->x_op) {
361 * XDR unsigned 16-bit integers
368 switch (xdrs->x_op) {
389 * XDR unsigned 16-bit integers
396 switch (xdrs->x_op) {
457 switch (xdrs->x_op) {
521 rndup = BYTES_PER_XDR_UNIT - rndup;
523 if (xdrs->x_op == XDR_DECODE) {
532 if (xdrs->x_op == XDR_ENCODE) {
541 if (xdrs->x_op == XDR_FREE) {
567 if ((nodesize > maxsize) && (xdrs->x_op != XDR_FREE)) {
574 switch (xdrs->x_op) {
592 if ((xdrs->x_op == XDR_DECODE) && (ret == FALSE)) {
618 return (xdr_bytes(xdrs, &np->n_bytes, &np->n_len, MAX_NETOBJ_SZ));
656 for (; choices->proc != NULL_xdrproc_t; choices++) {
657 if (choices->value == dscm)
658 return ((*(choices->proc))(xdrs, unp));
662 * no match - execute the default xdr routine if there is one
670 * Non-portable xdr primitives.
677 * xdr_string deals with "C strings" - arrays of bytes that are
692 * first deal with the length since xdr strings are counted-strings
694 switch (xdrs->x_op) {
717 switch (xdrs->x_op) {
736 if ((xdrs->x_op == XDR_DECODE) && (ret == FALSE)) {
765 * are in the "non-portable" section because they require that a `long long'
766 * be a 64-bit type.
768 * --thorpej@netbsd.org, November 30, 1999
772 * XDR 64-bit integers
779 switch (xdrs->x_op) {
803 * XDR unsigned 64-bit integers
810 switch (xdrs->x_op) {
833 * XDR unsigned 64-bit integers
840 switch (xdrs->x_op) {
871 * Don't bother open-coding this; it's a fair amount of code. Just
886 * Don't bother open-coding this; it's a fair amount of code. Just
901 * Don't bother open-coding this; it's a fair amount of code. Just
916 * Don't bother open-coding this; it's a fair amount of code. Just