File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,10 @@ pub trait StreamContext: Context {
136
136
hostcalls:: get_buffer ( BufferType :: DownstreamData , start, max_size) . unwrap ( )
137
137
}
138
138
139
+ fn set_downstream_data ( & self , start : usize , size : usize , value : & [ u8 ] ) {
140
+ hostcalls:: set_buffer ( BufferType :: DownstreamData , start, size, value) . unwrap ( )
141
+ }
142
+
139
143
fn on_downstream_close ( & mut self , _peer_type : PeerType ) { }
140
144
141
145
fn on_upstream_data ( & mut self , _data_size : usize , _end_of_stream : bool ) -> Action {
@@ -146,6 +150,10 @@ pub trait StreamContext: Context {
146
150
hostcalls:: get_buffer ( BufferType :: UpstreamData , start, max_size) . unwrap ( )
147
151
}
148
152
153
+ fn set_upstream_data ( & self , start : usize , size : usize , value : & [ u8 ] ) {
154
+ hostcalls:: set_buffer ( BufferType :: UpstreamData , start, size, value) . unwrap ( )
155
+ }
156
+
149
157
fn on_upstream_close ( & mut self , _peer_type : PeerType ) { }
150
158
151
159
fn on_log ( & mut self ) { }
You can’t perform that action at this time.
0 commit comments