Changeset 27:53a81954e243 in rrlib_serialization-java


Ignore:
Timestamp:
08.08.2017 00:07:18 (2 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Fixes initialization of boundary buffer in binary input streams

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BinaryInputStream.java

    r26 r27  
    4343    protected BufferInfo sourceBuffer = new BufferInfo(); 
    4444 
    45     /** Small buffer to enable reading data that crosses buffer boundaries */ 
    46     protected BufferInfo boundaryBuffer = new BufferInfo(); 
    47  
    48     /** Actual boundary buffer backend - symmetric layout: 7 bit old bytes - 7 bit new bytes */ 
    49     protected FixedBuffer boundaryBufferBackend = new FixedBuffer(14); 
     45    /** Small buffer to enable reading data that crosses buffer boundaries (symmetric layout: 7 bit old bytes - 7 bit new bytes) */ 
     46    protected BufferInfo boundaryBuffer = new BufferInfo(new FixedBuffer(14)); 
    5047 
    5148    /** Current buffer - either sourceBuffer or boundary buffer */ 
     
    8077 
    8178 
    82     public BinaryInputStream() {} 
     79    public BinaryInputStream() { 
     80 
     81    } 
    8382 
    8483    /** 
  • BufferInfo.java

    r26 r27  
    4545    /** Custom data that can be filled by source/sink that manages this buffer */ 
    4646    public Object customData = null; 
     47 
     48    public BufferInfo() {} 
     49    public BufferInfo(FixedBuffer buffer) { 
     50        this.buffer = buffer; 
     51    } 
    4752 
    4853    /** 
Note: See TracChangeset for help on using the changeset viewer.