Lines Matching refs:value

34 extern "C" SerializedBuffer SerializeSessionHandShake(const RustStruct::SessionHandShake &value)
37 .banner = string(value.banner),
38 .authType = value.authType,
39 .sessionId = value.sessionId,
40 .connectKey = string(value.connectKey),
41 .buf = string(value.buf),
42 .version = string(value.version)
50 extern "C" SerializedBuffer SerializePayloadProtect(const RustStruct::PayloadProtect &value)
53 .channelId = value.channelId,
54 .commandFlag = value.commandFlag,
55 .checkSum = value.checkSum,
56 .vCode = value.vCode
64 extern "C" SerializedBuffer SerializeTransferConfig(const RustStruct::TransferConfig &value)
67 .fileSize = value.fileSize,
68 .atime = value.atime,
69 .mtime = value.mtime,
70 .options = string(value.options),
71 .path = string(value.path),
72 .optionalName = string(value.optionalName),
73 .updateIfNew = static_cast<bool>(value.updateIfNew),
74 .compressType = value.compressType,
75 .holdTimestamp = static_cast<bool>(value.holdTimestamp),
76 .functionName = string(value.functionName),
77 .clientCwd = string(value.clientCwd),
78 .reserve1 = string(value.reserve1),
79 .reserve2 = string(value.reserve2)
87 extern "C" SerializedBuffer SerializeFileMode(const RustStruct::FileMode &value)
90 .perm = value.perm,
91 .u_id = value.u_id,
92 .g_id = value.g_id,
93 .context = string(value.context),
94 .fullName = string(value.context)
102 extern "C" SerializedBuffer SerializeTransferPayload(const RustStruct::TransferPayload &value)
105 .index = value.index,
106 .compressType = value.compressType,
107 .compressSize = value.compressSize,
108 .uncompressSize = value.uncompressSize
116 extern "C" SerializedBuffer SerializePayloadHead(RustStruct::PayloadHead &value)
118 size_t len = sizeof(value);
123 (void)memcpy_s(ptr, len, reinterpret_cast<char *>(&value), len);
127 extern "C" SerializedBuffer SerializeUsbHead(RustStruct::USBHead &value)
129 size_t len = sizeof(value);
134 (void)memcpy_s(ptr, len, reinterpret_cast<char *>(&value), len);
138 extern "C" SerializedBuffer SerializeUartHead(RustStruct::UartHead &value)
140 size_t len = sizeof(value);
145 (void)memcpy_s(ptr, len, reinterpret_cast<char *>(&value), len);
149 extern "C" uint8_t ParseSessionHandShake(RustStruct::SessionHandShake &value, SerializedBuffer buf)
155 value = {
166 extern "C" uint8_t ParsePayloadProtect(RustStruct::PayloadProtect &value, SerializedBuffer buf)
172 value = {
181 extern "C" uint8_t ParseTransferConfig(RustStruct::TransferConfig &value, SerializedBuffer buf)
187 value = {
205 extern "C" uint8_t ParseFileMode(RustStruct::FileMode &value, SerializedBuffer buf)
211 value = {
221 extern "C" uint8_t ParseTransferPayload(RustStruct::TransferPayload &value, SerializedBuffer buf)
227 value = {
236 extern "C" uint8_t ParsePayloadHead(RustStruct::PayloadHead &value, SerializedBuffer buf)
238 if (memcpy_s(&value, buf.size, reinterpret_cast<struct PayloadHead *>(buf.ptr), buf.size) != EOK) {
244 extern "C" uint8_t ParseUsbHead(RustStruct::USBHead &value, SerializedBuffer buf)
246 if (memcpy_s(&value, sizeof(RustStruct::USBHead), reinterpret_cast<struct USBHead *>(buf.ptr), buf.size) != EOK) {
252 extern "C" uint8_t ParseUartHead(RustStruct::UartHead &value, SerializedBuffer buf)
254 if (memcpy_s(&value, sizeof(RustStruct::UartHead), reinterpret_cast<struct UartHead *>(buf.ptr), buf.size) != EOK) {