mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
stage: moving performance enhancements into main
several incomplete features are gated behind the `experimental_features` flag.
This commit is contained in:
@@ -349,3 +349,18 @@ impl Default for SymbologyIdentifier {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl std::io::Write for ECIStringBuilder {
|
||||
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
|
||||
if buf.len() == 1 {
|
||||
self.append_byte(buf[0]);
|
||||
} else {
|
||||
self.append_bytes(buf);
|
||||
}
|
||||
Ok(buf.len())
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> std::io::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user