Apply Web2C TCX tables to native byte streams
This commit is contained in:
1 parent
3bb2330676
commit
509f229a52
13 files changed
+393
-38
No files matched your search
@@ -222,6 +222,10 @@ impl SourceProvider for RecordingHost<'_> {
|
||||
let text = text.to_owned();
|
||||
call!(self, observe_message(&text))
|
||||
}
|
||||
fn observe_message_bytes(&mut self, bytes: &[u8]) -> Result<(), String> {
|
||||
let bytes = bytes.to_owned();
|
||||
call!(self, observe_message_bytes(&bytes))
|
||||
}
|
||||
fn observe_diagnostic(
|
||||
&mut self,
|
||||
destination: WriteDestination,
|
||||
@@ -282,6 +286,10 @@ impl SourceProvider for RecordingHost<'_> {
|
||||
let text = text.to_owned();
|
||||
call!(self, write_out(stream, &text))
|
||||
}
|
||||
fn write_out_bytes(&mut self, stream: u8, bytes: &[u8]) -> Result<(), String> {
|
||||
let bytes = bytes.to_owned();
|
||||
call!(self, write_out_bytes(stream, &bytes))
|
||||
}
|
||||
fn close_out(&mut self, stream: u8) -> Result<(), String> {
|
||||
call!(self, close_out(stream))
|
||||
}
|
||||
@@ -289,6 +297,10 @@ impl SourceProvider for RecordingHost<'_> {
|
||||
let text = text.to_owned();
|
||||
call!(self, diagnostic(destination, &text))
|
||||
}
|
||||
fn diagnostic_bytes(&mut self, destination: WriteDestination, bytes: &[u8]) -> Result<(), String> {
|
||||
let bytes = bytes.to_owned();
|
||||
call!(self, diagnostic_bytes(destination, &bytes))
|
||||
}
|
||||
}
|
||||
|
||||
fn digest(bytes: &[u8]) -> String {
|
||||
|
||||
Reference in new issue
Block a user