Changeset 16:700d451127fe in rrlib_serialization-java


Ignore:
Timestamp:
29.04.2014 14:31:36 (5 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Added constructor to MemoryBuffer that allows to only specify if direct allocation is desired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MemoryBuffer.java

    r3 r16  
    6464    public MemoryBuffer() { 
    6565        this(DEFAULT_SIZE); 
     66    } 
     67 
     68    /** 
     69     * @param allocatDirect Allocate direct byte buffer? (in heap outside of JVM - mainly relevant for JNI code) 
     70     */ 
     71    public MemoryBuffer(boolean allocateDirect) { 
     72        this(DEFAULT_SIZE, DEFAULT_RESIZE_FACTOR, allocateDirect); 
    6673    } 
    6774 
Note: See TracChangeset for help on using the changeset viewer.