Avoid an unnecessary copy when parsing messages.

This commit is contained in:
akwizgran
2018-04-19 16:40:44 +01:00
parent eed1439745
commit d4b87983e8
4 changed files with 38 additions and 21 deletions

View File

@@ -7,5 +7,7 @@ public interface MessageFactory {
Message createMessage(GroupId g, long timestamp, byte[] body);
Message createMessage(byte[] raw);
Message createMessage(MessageId m, byte[] raw);
}