| 502 | |
| 503 | // transfer raw data; optimized memory allocation, as there is no need to |
| 504 | // create a temporary AutoArray<char> buffer |
| 505 | |
| 506 | TMError NetworkMessageContext::IdxGetRaw(int index, void*& value, int& size) |
| 507 | { |
| 508 | NET_ERROR(!_sending); |
| 509 | TRANSFER_FORMAT |
| 510 | const RefNetworkData& val = _msg->values[index]; |
| 511 | CHECK_ASSIGN(valTyped, val, const RefNetworkDataTyped<AutoArray<char>>) |
| 512 | value = valTyped.GetVal().Data(); |
| 513 | size = valTyped.GetVal().Size(); |
| 514 | return TMOK; |
| 515 | } |
| 516 |
no test coverage detected