public abstract class ChildMessage extends Message
Message.LazyParseException
bytes, checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, protocolVersion, recached, UNKNOWN_LENGTH
Modifier | Constructor and Description |
---|---|
protected |
ChildMessage() |
|
ChildMessage(NetworkParameters params) |
|
ChildMessage(NetworkParameters params,
byte[] msg,
int offset) |
|
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
int protocolVersion) |
|
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
int protocolVersion,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length) |
|
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustLength(int adjustment) |
protected void |
adjustLength(int newArraySize,
int adjustment) |
void |
setParent(Message parent) |
protected void |
unCache()
To be called before any change of internal values including any setters.
|
bitcoinSerialize, bitcoinSerialize, ensureParsed, getHash, getMessageSize, getParams, isCached, isParsed, isRecached, maybeParse, parseLite, unsafeBitcoinSerialize
protected ChildMessage()
public ChildMessage(NetworkParameters params)
public ChildMessage(NetworkParameters params, byte[] msg, int offset, int protocolVersion) throws ProtocolException
ProtocolException
public ChildMessage(NetworkParameters params, byte[] msg, int offset, int protocolVersion, Message parent, boolean parseLazy, boolean parseRetain, int length) throws ProtocolException
ProtocolException
public ChildMessage(NetworkParameters params, byte[] msg, int offset) throws ProtocolException
ProtocolException
public ChildMessage(NetworkParameters params, byte[] msg, int offset, @Nullable Message parent, boolean parseLazy, boolean parseRetain, int length) throws ProtocolException
ProtocolException
protected void unCache()
Message
Child messages of this object(e.g. Transactions belonging to a Block) will not have their internal byte caches invalidated unless they are also modified internally.
protected void adjustLength(int adjustment)
protected void adjustLength(int newArraySize, int adjustment)
adjustLength
in class Message
Copyright © 2014. All rights reserved.