Lines Matching refs:output
13 struct BejEncoderOutputHandler* output) in bejEncodeNnint() argument
17 RETURN_IF_IERROR(output->recvOutput(&nnintLengthByte, sizeof(uint8_t), in bejEncodeNnint()
18 output->handlerContext)); in bejEncodeNnint()
20 return output->recvOutput(&value, nnintLengthByte, output->handlerContext); in bejEncodeNnint()
27 struct BejEncoderOutputHandler* output) in bejEncodeFormat() argument
29 return output->recvOutput(format, sizeof(struct BejTupleF), in bejEncodeFormat()
30 output->handlerContext); in bejEncodeFormat()
37 struct BejEncoderOutputHandler* output) in bejEncodeBejSetOrArray() argument
40 RETURN_IF_IERROR(bejEncodeNnint(node->metaData.sequenceNumber, output)); in bejEncodeBejSetOrArray()
42 RETURN_IF_IERROR(bejEncodeFormat(&node->nodeAttr.format, output)); in bejEncodeBejSetOrArray()
44 RETURN_IF_IERROR(bejEncodeNnint(node->metaData.vSize, output)); in bejEncodeBejSetOrArray()
46 return bejEncodeNnint(node->nChildren, output); in bejEncodeBejSetOrArray()
53 struct BejEncoderOutputHandler* output) in bejEncodeInteger() argument
56 return output->recvOutput(&val, copyLength, output->handlerContext); in bejEncodeInteger()
63 struct BejEncoderOutputHandler* output) in bejEncodeBejInteger() argument
67 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejInteger()
69 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejInteger()
71 RETURN_IF_IERROR(bejEncodeNnint(node->leaf.metaData.vSize, output)); in bejEncodeBejInteger()
73 return bejEncodeInteger(node->value, output); in bejEncodeBejInteger()
80 struct BejEncoderOutputHandler* output) in bejEncodeBejEnum() argument
84 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejEnum()
86 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejEnum()
88 RETURN_IF_IERROR(bejEncodeNnint(node->leaf.metaData.vSize, output)); in bejEncodeBejEnum()
90 return bejEncodeNnint(node->enumValueSeq, output); in bejEncodeBejEnum()
94 struct BejEncoderOutputHandler* output) in bejEncodeBejString() argument
98 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejString()
100 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejString()
102 RETURN_IF_IERROR(bejEncodeNnint(node->leaf.metaData.vSize, output)); in bejEncodeBejString()
104 return output->recvOutput((void*)node->value, node->leaf.metaData.vSize, in bejEncodeBejString()
105 output->handlerContext); in bejEncodeBejString()
109 struct BejEncoderOutputHandler* output) in bejEncodeBejReal() argument
113 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejReal()
115 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejReal()
117 RETURN_IF_IERROR(bejEncodeNnint(node->leaf.metaData.vSize, output)); in bejEncodeBejReal()
121 bejEncodeNnint(bejIntLengthOfValue(node->bejReal.whole), output)); in bejEncodeBejReal()
123 RETURN_IF_IERROR(bejEncodeInteger(node->bejReal.whole, output)); in bejEncodeBejReal()
125 RETURN_IF_IERROR(bejEncodeNnint(node->bejReal.zeroCount, output)); in bejEncodeBejReal()
127 RETURN_IF_IERROR(bejEncodeNnint(node->bejReal.fract, output)); in bejEncodeBejReal()
129 RETURN_IF_IERROR(bejEncodeNnint(node->bejReal.expLen, output)); in bejEncodeBejReal()
133 RETURN_IF_IERROR(bejEncodeNnint(node->bejReal.expLen, output)); in bejEncodeBejReal()
134 RETURN_IF_IERROR(bejEncodeInteger(node->bejReal.exp, output)); in bejEncodeBejReal()
140 struct BejEncoderOutputHandler* output) in bejEncodeBejBool() argument
144 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejBool()
146 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejBool()
148 RETURN_IF_IERROR(bejEncodeNnint(node->leaf.metaData.vSize, output)); in bejEncodeBejBool()
151 return output->recvOutput(&value, /*data_size=*/sizeof(uint8_t), in bejEncodeBejBool()
152 output->handlerContext); in bejEncodeBejBool()
156 struct BejEncoderOutputHandler* output) in bejEncodeBejProAnno() argument
159 RETURN_IF_IERROR(bejEncodeNnint(node->metaData.sequenceNumber, output)); in bejEncodeBejProAnno()
161 RETURN_IF_IERROR(bejEncodeFormat(&node->nodeAttr.format, output)); in bejEncodeBejProAnno()
163 return bejEncodeNnint(node->metaData.vSize, output); in bejEncodeBejProAnno()
170 struct BejEncoderOutputHandler* output) in bejEncodeBejNull() argument
174 bejEncodeNnint(node->leaf.metaData.sequenceNumber, output)); in bejEncodeBejNull()
176 RETURN_IF_IERROR(bejEncodeFormat(&node->leaf.nodeAttr.format, output)); in bejEncodeBejNull()
178 return bejEncodeNnint(node->leaf.metaData.vSize, output); in bejEncodeBejNull()
184 static int bejEncodeNode(void* node, struct BejEncoderOutputHandler* output) in bejEncodeNode() argument
190 RETURN_IF_IERROR(bejEncodeBejSetOrArray(node, output)); in bejEncodeNode()
193 RETURN_IF_IERROR(bejEncodeBejSetOrArray(node, output)); in bejEncodeNode()
196 RETURN_IF_IERROR(bejEncodeBejNull(node, output)); in bejEncodeNode()
199 RETURN_IF_IERROR(bejEncodeBejInteger(node, output)); in bejEncodeNode()
202 RETURN_IF_IERROR(bejEncodeBejEnum(node, output)); in bejEncodeNode()
205 RETURN_IF_IERROR(bejEncodeBejString(node, output)); in bejEncodeNode()
208 RETURN_IF_IERROR(bejEncodeBejReal(node, output)); in bejEncodeNode()
211 RETURN_IF_IERROR(bejEncodeBejBool(node, output)); in bejEncodeNode()
214 RETURN_IF_IERROR(bejEncodeBejProAnno(node, output)); in bejEncodeNode()
241 struct BejEncoderOutputHandler* output) in bejProcessChildNodes() argument
249 RETURN_IF_IERROR(bejEncodeNode(childPtr, output)); in bejProcessChildNodes()
274 struct BejEncoderOutputHandler* output) in bejEncodeTree() argument
278 RETURN_IF_IERROR(bejEncodeNode(root, output)); in bejEncodeTree()
296 RETURN_IF_IERROR(bejProcessChildNodes(parent, stack, output)); in bejEncodeTree()
315 struct BejEncoderOutputHandler* output, in bejEncode() argument
324 NULL_CHECK(output, "output"); in bejEncode()
354 output->recvOutput(&version, sizeof(uint32_t), output->handlerContext)); in bejEncode()
356 RETURN_IF_IERROR(output->recvOutput(&reserved, sizeof(uint16_t), in bejEncode()
357 output->handlerContext)); in bejEncode()
358 RETURN_IF_IERROR(output->recvOutput(&schemaClass, sizeof(uint8_t), in bejEncode()
359 output->handlerContext)); in bejEncode()
363 return bejEncodeTree(root, stack, output); in bejEncode()