S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_pub_fixed_buffer.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef SOPC_PUB_FIXED_BUFFER_H_
21#define SOPC_PUB_FIXED_BUFFER_H_
22
23#include <stdint.h>
24
25#include "sopc_buffer.h"
27#include "sopc_enums.h"
29
32
40
47
48/* Return pointer to updated preencode buffer stored in preencode. This buffer should'nt be free by user */
50
51/* Set position of dataSetMessage sequence number in final buffer */
53 uint32_t position,
54 size_t index);
55
56/* Set position of dataSetMessage timestamp in final buffer */
58 uint32_t position,
59 size_t index);
60
63 size_t index);
64
65/* Set position of dataSetField in final buffer */
67 uint32_t position);
68#endif /* SOPC_PUB_FIXED_BUFFER_H_ */
A buffer of bytes with a maximum size, length and position.
struct SOPC_Dataset_LL_NetworkMessage SOPC_Dataset_LL_NetworkMessage
Definition sopc_dataset_ll_layer.h:34
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
bool SOPC_PubFixedBuffer_Set_DSM_Timestamp_Position_At(SOPC_PubFixedBuffer_Buffer_Ctx *preencode, uint32_t position, size_t index)
SOPC_ReturnStatus SOPC_DataSet_LL_NetworkMessage_Create_Preencode_Buffer(SOPC_Dataset_LL_NetworkMessage *nm)
Create and initialize preencode context against nm.
struct SOPC_PubFixedBuffer_DataSetField_Position SOPC_PubFixedBuffer_DataSetField_Position
Definition sopc_pub_fixed_buffer.h:31
SOPC_Buffer * SOPC_PubFixedBuffer_Get_UpdatedBuffer(SOPC_PubFixedBuffer_Buffer_Ctx *preencode)
void SOPC_PubFixedBuffer_Delete_Preencode_Buffer(SOPC_PubFixedBuffer_Buffer_Ctx *preencode)
Free memory allocated by SOPC_DataSet_LL_NetworkMessage_Create_Preencode_Buffer.
struct SOPC_PubFixedBuffer_Buffer_Ctx SOPC_PubFixedBuffer_Buffer_Ctx
Definition sopc_pub_fixed_buffer.h:30
void SOPC_PubFixedBuffer_DataSetFieldPosition_Set_Position(SOPC_PubFixedBuffer_DataSetField_Position *dsfPos, uint32_t position)
SOPC_PubFixedBuffer_DataSetField_Position * SOPC_PubFixedBuffer_Get_DataSetField_Position_At(SOPC_PubFixedBuffer_Buffer_Ctx *preencode, size_t index)
bool SOPC_PubFixedBuffer_Set_DSM_SequenceNumber_Position_At(SOPC_PubFixedBuffer_Buffer_Ctx *preencode, uint32_t position, size_t index)
Internal module used to implement PubSub security features.
Bytes buffer structure.
Definition sopc_buffer.h:38