Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
fe58fb4c
Commit
fe58fb4c
authored
13 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Fixed more unit tests.
parent
e7f106a7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/net/sf/briar/protocol/BundleWriterImpl.java
+1
-4
1 addition, 4 deletions
components/net/sf/briar/protocol/BundleWriterImpl.java
components/net/sf/briar/protocol/MessageEncoderImpl.java
+2
-0
2 additions, 0 deletions
components/net/sf/briar/protocol/MessageEncoderImpl.java
with
3 additions
and
4 deletions
components/net/sf/briar/protocol/BundleWriterImpl.java
+
1
−
4
View file @
fe58fb4c
...
...
@@ -69,10 +69,7 @@ class BundleWriterImpl implements BundleWriter {
// Write the data
writer
.
writeListStart
();
// Bypass the writer and write each raw message directly
for
(
Raw
message
:
messages
)
{
writer
.
writeUserDefinedTag
(
Tags
.
MESSAGE
);
out
.
write
(
message
.
getBytes
());
}
for
(
Raw
message
:
messages
)
out
.
write
(
message
.
getBytes
());
writer
.
writeListEnd
();
// Stop digesting
out
.
on
(
false
);
...
...
This diff is collapsed.
Click to expand it.
components/net/sf/briar/protocol/MessageEncoderImpl.java
+
2
−
0
View file @
fe58fb4c
...
...
@@ -12,6 +12,7 @@ import net.sf.briar.api.protocol.GroupId;
import
net.sf.briar.api.protocol.Message
;
import
net.sf.briar.api.protocol.MessageEncoder
;
import
net.sf.briar.api.protocol.MessageId
;
import
net.sf.briar.api.protocol.Tags
;
import
net.sf.briar.api.serial.Writer
;
import
net.sf.briar.api.serial.WriterFactory
;
...
...
@@ -35,6 +36,7 @@ class MessageEncoderImpl implements MessageEncoder {
ByteArrayOutputStream
out
=
new
ByteArrayOutputStream
();
Writer
w
=
writerFactory
.
createWriter
(
out
);
// Write the message
w
.
writeUserDefinedTag
(
Tags
.
MESSAGE
);
parent
.
writeTo
(
w
);
group
.
writeTo
(
w
);
w
.
writeInt64
(
timestamp
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment