Class SafeMemoryWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, DataOutputPlus

    public class SafeMemoryWriter
    extends DataOutputBuffer
    • Constructor Detail

      • SafeMemoryWriter

        public SafeMemoryWriter​(long initialCapacity)
    • Method Detail

      • currentBuffer

        public SafeMemory currentBuffer()
      • trim

        public void trim()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class DataOutputBuffer
      • close

        public java.lang.Throwable close​(java.lang.Throwable accumulate)
      • length

        public long length()
      • capacity

        public long capacity()
      • validateReallocation

        public long validateReallocation​(long newSize)