Line data Source code
1 : /********************************************************************************
2 : * Copyright (c) 2026 Accenture
3 : *
4 : * This program and the accompanying materials are made available under the
5 : * terms of the Apache License Version 2.0 which is available at
6 : * https://www.apache.org/licenses/LICENSE-2.0
7 : *
8 : * SPDX-License-Identifier: Apache-2.0
9 : ********************************************************************************/
10 :
11 : #include "someip/SomeIpStreamer.h"
12 :
13 : namespace someip
14 : {
15 3 : void validate(SomeIpStreamer& streamer, bool const result)
16 : {
17 3 : if (streamer.isGood() && (result == false))
18 : {
19 1 : streamer.setFailure(::someip::ErrorCode::SOMEIP_CODING);
20 : }
21 3 : }
22 :
23 : } // namespace someip
|