mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Removed writer's count of bytes written and renamed a method.
This commit is contained in:
@@ -13,7 +13,7 @@ public class AuthorId extends UniqueId {
|
||||
}
|
||||
|
||||
public void writeTo(Writer w) throws IOException {
|
||||
w.writeUserDefinedTag(Types.AUTHOR_ID);
|
||||
w.writeUserDefinedId(Types.AUTHOR_ID);
|
||||
w.writeBytes(id);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public class BatchId extends UniqueId {
|
||||
}
|
||||
|
||||
public void writeTo(Writer w) throws IOException {
|
||||
w.writeUserDefinedTag(Types.BATCH_ID);
|
||||
w.writeUserDefinedId(Types.BATCH_ID);
|
||||
w.writeBytes(id);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public class GroupId extends UniqueId {
|
||||
}
|
||||
|
||||
public void writeTo(Writer w) throws IOException {
|
||||
w.writeUserDefinedTag(Types.GROUP_ID);
|
||||
w.writeUserDefinedId(Types.GROUP_ID);
|
||||
w.writeBytes(id);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ public class MessageId extends UniqueId {
|
||||
}
|
||||
|
||||
public void writeTo(Writer w) throws IOException {
|
||||
w.writeUserDefinedTag(Types.MESSAGE_ID);
|
||||
w.writeUserDefinedId(Types.MESSAGE_ID);
|
||||
w.writeBytes(id);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,8 +6,6 @@ import java.util.Map;
|
||||
|
||||
public interface Writer {
|
||||
|
||||
long getBytesWritten();
|
||||
|
||||
void writeBoolean(boolean b) throws IOException;
|
||||
|
||||
void writeUint7(byte b) throws IOException;
|
||||
@@ -33,5 +31,5 @@ public interface Writer {
|
||||
|
||||
void writeNull() throws IOException;
|
||||
|
||||
void writeUserDefinedTag(int tag) throws IOException;
|
||||
void writeUserDefinedId(int tag) throws IOException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user