@@ -44,6 +44,7 @@ type ProxyWASMHost interface {
44
44
ProxyGetHeaderMapPairs (mapType types.MapType , returnValueData * * byte , returnValueSize * int ) types.Status
45
45
ProxySetHeaderMapPairs (mapType types.MapType , mapData * byte , mapSize int ) types.Status
46
46
ProxyGetBufferBytes (bt types.BufferType , start int , maxSize int , returnBufferData * * byte , returnBufferSize * int ) types.Status
47
+ ProxySetBufferBytes (bt types.BufferType , start int , maxSize int , bufferData * byte , bufferSize int ) types.Status
47
48
ProxyHttpCall (upstreamData * byte , upstreamSize int , headerData * byte , headerSize int , bodyData * byte , bodySize int , trailersData * byte , trailersSize int , timeout uint32 , calloutIDPtr * uint32 ) types.Status
48
49
ProxySetTickPeriodMilliseconds (period uint32 ) types.Status
49
50
ProxyGetCurrentTimeNanoseconds (returnTime * int64 ) types.Status
@@ -112,6 +113,9 @@ func (d DefaultProxyWAMSHost) ProxySetHeaderMapPairs(mapType types.MapType, mapD
112
113
func (d DefaultProxyWAMSHost ) ProxyGetBufferBytes (bt types.BufferType , start int , maxSize int , returnBufferData * * byte , returnBufferSize * int ) types.Status {
113
114
return 0
114
115
}
116
+ func (d DefaultProxyWAMSHost ) ProxySetBufferBytes (bt types.BufferType , start int , maxSize int , bufferData * byte , bufferSize int ) types.Status {
117
+ return 0
118
+ }
115
119
func (d DefaultProxyWAMSHost ) ProxyHttpCall (upstreamData * byte , upstreamSize int , headerData * byte , headerSize int , bodyData * byte , bodySize int , trailersData * byte , trailersSize int , timeout uint32 , calloutIDPtr * uint32 ) types.Status {
116
120
return 0
117
121
}
@@ -209,6 +213,10 @@ func ProxyGetBufferBytes(bt types.BufferType, start int, maxSize int, returnBuff
209
213
return currentHost .ProxyGetBufferBytes (bt , start , maxSize , returnBufferData , returnBufferSize )
210
214
}
211
215
216
+ func ProxySetBufferBytes (bt types.BufferType , start int , maxSize int , bufferData * byte , bufferSize int ) types.Status {
217
+ return currentHost .ProxySetBufferBytes (bt , start , maxSize , bufferData , bufferSize )
218
+ }
219
+
212
220
func ProxyHttpCall (upstreamData * byte , upstreamSize int , headerData * byte , headerSize int , bodyData * byte ,
213
221
bodySize int , trailersData * byte , trailersSize int , timeout uint32 , calloutIDPtr * uint32 ) types.Status {
214
222
return currentHost .ProxyHttpCall (upstreamData , upstreamSize ,
0 commit comments