I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 2155347e authored by zzz's avatar zzz
Browse files

another writeLong

parent db86850d
No related branches found
No related tags found
No related merge requests found
...@@ -176,7 +176,7 @@ public class Certificate extends DataStructureImpl { ...@@ -176,7 +176,7 @@ public class Certificate extends DataStructureImpl {
if (_type < 0) throw new DataFormatException("Invalid certificate type: " + _type); if (_type < 0) throw new DataFormatException("Invalid certificate type: " + _type);
//if ((_type != 0) && (_payload == null)) throw new DataFormatException("Payload is required for non null type"); //if ((_type != 0) && (_payload == null)) throw new DataFormatException("Payload is required for non null type");
DataHelper.writeLong(out, 1, _type); out.write((byte) _type);
if (_payload != null) { if (_payload != null) {
DataHelper.writeLong(out, 2, _payload.length); DataHelper.writeLong(out, 2, _payload.length);
out.write(_payload); out.write(_payload);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment