forked from I2P_Developers/i2p.i2p
another writeLong
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user