mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Added Consumer support to Writer, to avoid redundant copying.
This commit is contained in:
@@ -6,7 +6,5 @@ public interface Consumer {
|
||||
|
||||
void write(byte b) throws IOException;
|
||||
|
||||
void write(byte[] b) throws IOException;
|
||||
|
||||
void write(byte[] b, int off, int len) throws IOException;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,9 @@ import java.util.Map;
|
||||
|
||||
public interface Writer {
|
||||
|
||||
void addConsumer(Consumer c);
|
||||
void removeConsumer(Consumer c);
|
||||
|
||||
void writeBoolean(boolean b) throws IOException;
|
||||
|
||||
void writeUint7(byte b) throws IOException;
|
||||
|
||||
Reference in New Issue
Block a user