mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 23:29:52 +01:00
Added Consumer support to Writer, to avoid redundant copying.
This commit is contained in:
@@ -17,10 +17,6 @@ class MacConsumer implements Consumer {
|
||||
mac.update(b);
|
||||
}
|
||||
|
||||
public void write(byte[] b) {
|
||||
mac.update(b);
|
||||
}
|
||||
|
||||
public void write(byte[] b, int off, int len) {
|
||||
mac.update(b, off, len);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user