MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / emit_env

Method emit_env

debugger/src/debugger/value_writer.rs:178–191  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

176 }
177
178 fn emit_env(&mut self) -> Bytes {
179 let mut msg = Bytes::new();
180 for (addr, val) in self.env.iter_mut().rev() {
181 // reverse!
182 if let Some(val) = val.take() {
183 msg.blob(Bytes::from(addr.to_bytes()));
184 msg.push_bytes(val);
185 msg.space();
186 msg.push_str("setenv");
187 msg.space();
188 }
189 }
190 msg
191 }
192}
193
194impl<'a> RValueWriter<'a> {

Callers 2

write_inner_valueMethod · 0.80
write_valueMethod · 0.80

Calls 5

blobMethod · 0.80
to_bytesMethod · 0.80
push_bytesMethod · 0.80
spaceMethod · 0.80
push_strMethod · 0.80

Tested by

no test coverage detected