public class ByteAccumulator extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected com.fasterxml.jackson.dataformat.protobuf.ByteAccumulator.Segment | _firstSegment | 
| protected com.fasterxml.jackson.dataformat.protobuf.ByteAccumulator.Segment | _lastSegment | 
| protected ByteAccumulator | _parent | 
| protected int | _parentStartPointer to start of contents provided by parent, preceding room
 for prefix (that is, same as or less than `_prefixOffset`) | 
| protected byte[] | _prefixBufferCaller-provided buffer in which optional type prefix,
 and mandatory length indicator may be added. | 
| protected int | _prefixOffsetOffset within  _prefixBufferwhere there is room for encoding
 prefix (type, tag, length). | 
| protected int | _segmentBytesTotal number of bytes contained within buffers, to be used for length prefix. | 
| protected int | _typedTag | 
| Constructor and Description | 
|---|
| ByteAccumulator(ByteAccumulator p,
               int typedTag,
               byte[] prefixBuffer,
               int prefixOffset,
               int parentStart) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | append(byte[] buf,
      int offset,
      int len) | 
| ByteAccumulator | finish(OutputStream out,
      byte[] input) | 
| ByteAccumulator | finish(OutputStream out,
      byte[] input,
      int offset,
      int len) | 
protected final ByteAccumulator _parent
protected final byte[] _prefixBuffer
protected final int _prefixOffset
_prefixBuffer where there is room for encoding
 prefix (type, tag, length).protected final int _typedTag
protected com.fasterxml.jackson.dataformat.protobuf.ByteAccumulator.Segment _firstSegment
protected com.fasterxml.jackson.dataformat.protobuf.ByteAccumulator.Segment _lastSegment
protected int _segmentBytes
protected int _parentStart
public ByteAccumulator(ByteAccumulator p, int typedTag, byte[] prefixBuffer, int prefixOffset, int parentStart)
public void append(byte[] buf,
                   int offset,
                   int len)
public ByteAccumulator finish(OutputStream out, byte[] input, int offset, int len) throws IOException
IOExceptionpublic ByteAccumulator finish(OutputStream out, byte[] input) throws IOException
IOExceptionCopyright © 2019 FasterXML. All rights reserved.