class org.h2.store.fs.FileNioMem extends org.h2.store.fs.FileBase
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.h2.store.fs.FileNioMem
  super_class: org.h2.store.fs.FileBase
{
  org.h2.store.fs.FileNioMemData data;
    descriptor: Lorg/h2/store/fs/FileNioMemData;
    flags: (0x0000) 

  private final boolean readOnly;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private long pos;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  void <init>(org.h2.store.fs.FileNioMemData, boolean);
    descriptor: (Lorg/h2/store/fs/FileNioMemData;Z)V
    flags: (0x0000) 
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // org.h2.store.fs.FileNioMem this
        start local 1 // org.h2.store.fs.FileNioMemData data
        start local 2 // boolean readOnly
         0: .line 285
            aload 0 /* this */
            invokespecial org.h2.store.fs.FileBase.<init>:()V
         1: .line 286
            aload 0 /* this */
            aload 1 /* data */
            putfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
         2: .line 287
            aload 0 /* this */
            iload 2 /* readOnly */
            putfield org.h2.store.fs.FileNioMem.readOnly:Z
         3: .line 288
            return
        end local 2 // boolean readOnly
        end local 1 // org.h2.store.fs.FileNioMemData data
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    4     0      this  Lorg/h2/store/fs/FileNioMem;
            0    4     1      data  Lorg/h2/store/fs/FileNioMemData;
            0    4     2  readOnly  Z
    MethodParameters:
          Name  Flags
      data      
      readOnly  

  public long size();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.h2.store.fs.FileNioMem this
         0: .line 292
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            invokevirtual org.h2.store.fs.FileNioMemData.length:()J
            lreturn
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/h2/store/fs/FileNioMem;

  public java.nio.channels.FileChannel truncate(long);
    descriptor: (J)Ljava/nio/channels/FileChannel;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // org.h2.store.fs.FileNioMem this
        start local 1 // long newLength
         0: .line 298
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.readOnly:Z
            ifeq 2
         1: .line 299
            new java.nio.channels.NonWritableChannelException
            dup
            invokespecial java.nio.channels.NonWritableChannelException.<init>:()V
            athrow
         2: .line 301
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            ifnonnull 4
         3: .line 302
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            athrow
         4: .line 304
      StackMap locals:
      StackMap stack:
            lload 1 /* newLength */
            aload 0 /* this */
            invokevirtual org.h2.store.fs.FileNioMem.size:()J
            lcmp
            ifge 8
         5: .line 305
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.readOnly:Z
            invokevirtual org.h2.store.fs.FileNioMemData.touch:(Z)V
         6: .line 306
            aload 0 /* this */
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.pos:J
            lload 1 /* newLength */
            invokestatic java.lang.Math.min:(JJ)J
            putfield org.h2.store.fs.FileNioMem.pos:J
         7: .line 307
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            lload 1 /* newLength */
            invokevirtual org.h2.store.fs.FileNioMemData.truncate:(J)V
         8: .line 309
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            areturn
        end local 1 // long newLength
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    9     0       this  Lorg/h2/store/fs/FileNioMem;
            0    9     1  newLength  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
           Name  Flags
      newLength  

  public java.nio.channels.FileChannel position(long);
    descriptor: (J)Ljava/nio/channels/FileChannel;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.h2.store.fs.FileNioMem this
        start local 1 // long newPos
         0: .line 314
            aload 0 /* this */
            lload 1 /* newPos */
            l2i
            i2l
            putfield org.h2.store.fs.FileNioMem.pos:J
         1: .line 315
            aload 0 /* this */
            areturn
        end local 1 // long newPos
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lorg/h2/store/fs/FileNioMem;
            0    2     1  newPos  J
    MethodParameters:
        Name  Flags
      newPos  

  public int write(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=3, args_size=2
        start local 0 // org.h2.store.fs.FileNioMem this
        start local 1 // java.nio.ByteBuffer src
         0: .line 320
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            ifnonnull 2
         1: .line 321
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            athrow
         2: .line 323
      StackMap locals:
      StackMap stack:
            aload 1 /* src */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            istore 2 /* len */
        start local 2 // int len
         3: .line 324
            iload 2 /* len */
            ifne 5
         4: .line 325
            iconst_0
            ireturn
         5: .line 327
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.readOnly:Z
            invokevirtual org.h2.store.fs.FileNioMemData.touch:(Z)V
         6: .line 329
            aload 0 /* this */
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.pos:J
            aload 1 /* src */
            iconst_0
            iload 2 /* len */
            iconst_1
            invokevirtual org.h2.store.fs.FileNioMemData.readWrite:(JLjava/nio/ByteBuffer;IIZ)J
            putfield org.h2.store.fs.FileNioMem.pos:J
         7: .line 330
            aload 1 /* src */
            aload 1 /* src */
            invokevirtual java.nio.ByteBuffer.position:()I
            iload 2 /* len */
            iadd
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
            pop
         8: .line 331
            iload 2 /* len */
            ireturn
        end local 2 // int len
        end local 1 // java.nio.ByteBuffer src
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  this  Lorg/h2/store/fs/FileNioMem;
            0    9     1   src  Ljava/nio/ByteBuffer;
            3    9     2   len  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      src   

  public int read(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=5, args_size=2
        start local 0 // org.h2.store.fs.FileNioMem this
        start local 1 // java.nio.ByteBuffer dst
         0: .line 336
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            ifnonnull 2
         1: .line 337
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            athrow
         2: .line 339
      StackMap locals:
      StackMap stack:
            aload 1 /* dst */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            istore 2 /* len */
        start local 2 // int len
         3: .line 340
            iload 2 /* len */
            ifne 5
         4: .line 341
            iconst_0
            ireturn
         5: .line 343
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.pos:J
            aload 1 /* dst */
            aload 1 /* dst */
            invokevirtual java.nio.ByteBuffer.position:()I
            iload 2 /* len */
            iconst_0
            invokevirtual org.h2.store.fs.FileNioMemData.readWrite:(JLjava/nio/ByteBuffer;IIZ)J
            lstore 3 /* newPos */
        start local 3 // long newPos
         6: .line 344
            lload 3 /* newPos */
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.pos:J
            lsub
            l2i
            istore 2 /* len */
         7: .line 345
            iload 2 /* len */
            ifgt 9
         8: .line 346
            iconst_m1
            ireturn
         9: .line 348
      StackMap locals: long
      StackMap stack:
            aload 1 /* dst */
            aload 1 /* dst */
            invokevirtual java.nio.ByteBuffer.position:()I
            iload 2 /* len */
            iadd
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
            pop
        10: .line 349
            aload 0 /* this */
            lload 3 /* newPos */
            putfield org.h2.store.fs.FileNioMem.pos:J
        11: .line 350
            iload 2 /* len */
            ireturn
        end local 3 // long newPos
        end local 2 // int len
        end local 1 // java.nio.ByteBuffer dst
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   12     0    this  Lorg/h2/store/fs/FileNioMem;
            0   12     1     dst  Ljava/nio/ByteBuffer;
            3   12     2     len  I
            6   12     3  newPos  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      dst   

  public int read(java.nio.ByteBuffer, long);
    descriptor: (Ljava/nio/ByteBuffer;J)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=7, args_size=3
        start local 0 // org.h2.store.fs.FileNioMem this
        start local 1 // java.nio.ByteBuffer dst
        start local 2 // long position
         0: .line 355
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            ifnonnull 2
         1: .line 356
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            athrow
         2: .line 358
      StackMap locals:
      StackMap stack:
            aload 1 /* dst */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            istore 4 /* len */
        start local 4 // int len
         3: .line 359
            iload 4 /* len */
            ifne 5
         4: .line 360
            iconst_0
            ireturn
         5: .line 363
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            lload 2 /* position */
            aload 1 /* dst */
            aload 1 /* dst */
            invokevirtual java.nio.ByteBuffer.position:()I
            iload 4 /* len */
            iconst_0
            invokevirtual org.h2.store.fs.FileNioMemData.readWrite:(JLjava/nio/ByteBuffer;IIZ)J
            lstore 5 /* newPos */
        start local 5 // long newPos
         6: .line 364
            lload 5 /* newPos */
            lload 2 /* position */
            lsub
            l2i
            istore 4 /* len */
         7: .line 365
            iload 4 /* len */
            ifgt 9
         8: .line 366
            iconst_m1
            ireturn
         9: .line 368
      StackMap locals: long
      StackMap stack:
            aload 1 /* dst */
            aload 1 /* dst */
            invokevirtual java.nio.ByteBuffer.position:()I
            iload 4 /* len */
            iadd
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
            pop
        10: .line 369
            iload 4 /* len */
            ireturn
        end local 5 // long newPos
        end local 4 // int len
        end local 2 // long position
        end local 1 // java.nio.ByteBuffer dst
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   11     0      this  Lorg/h2/store/fs/FileNioMem;
            0   11     1       dst  Ljava/nio/ByteBuffer;
            0   11     2  position  J
            3   11     4       len  I
            6   11     5    newPos  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      dst       
      position  

  public long position();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.h2.store.fs.FileNioMem this
         0: .line 374
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.pos:J
            lreturn
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/h2/store/fs/FileNioMem;

  public void implCloseChannel();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.h2.store.fs.FileNioMem this
         0: .line 379
            aload 0 /* this */
            lconst_0
            putfield org.h2.store.fs.FileNioMem.pos:J
         1: .line 380
            aload 0 /* this */
            aconst_null
            putfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
         2: .line 381
            return
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/h2/store/fs/FileNioMem;
    Exceptions:
      throws java.io.IOException

  public void force(boolean);
    descriptor: (Z)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=0, locals=2, args_size=2
        start local 0 // org.h2.store.fs.FileNioMem this
        start local 1 // boolean metaData
         0: .line 386
            return
        end local 1 // boolean metaData
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    1     0      this  Lorg/h2/store/fs/FileNioMem;
            0    1     1  metaData  Z
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      metaData  

  public synchronized java.nio.channels.FileLock tryLock(long, long, boolean);
    descriptor: (JJZ)Ljava/nio/channels/FileLock;
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=9, locals=6, args_size=4
        start local 0 // org.h2.store.fs.FileNioMem this
        start local 1 // long position
        start local 3 // long size
        start local 5 // boolean shared
         0: .line 391
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            ifnonnull 2
         1: .line 392
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            athrow
         2: .line 394
      StackMap locals:
      StackMap stack:
            iload 5 /* shared */
            ifeq 5
         3: .line 395
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            invokevirtual org.h2.store.fs.FileNioMemData.lockShared:()Z
            ifne 7
         4: .line 396
            aconst_null
            areturn
         5: .line 399
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            invokevirtual org.h2.store.fs.FileNioMemData.lockExclusive:()Z
            ifne 7
         6: .line 400
            aconst_null
            areturn
         7: .line 404
      StackMap locals:
      StackMap stack:
            new org.h2.store.fs.FileNioMem$1
            dup
            aload 0 /* this */
            getstatic org.h2.store.fs.FakeFileChannel.INSTANCE:Lorg/h2/store/fs/FakeFileChannel;
            lload 1 /* position */
            lload 3 /* size */
            iload 5 /* shared */
            invokespecial org.h2.store.fs.FileNioMem$1.<init>:(Lorg/h2/store/fs/FileNioMem;Ljava/nio/channels/FileChannel;JJZ)V
            areturn
        end local 5 // boolean shared
        end local 3 // long size
        end local 1 // long position
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    8     0      this  Lorg/h2/store/fs/FileNioMem;
            0    8     1  position  J
            0    8     3      size  J
            0    8     5    shared  Z
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      position  
      size      
      shared    

  public java.lang.String toString();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.h2.store.fs.FileNioMem this
         0: .line 420
            aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            ifnonnull 1
            ldc "<closed>"
            goto 2
      StackMap locals:
      StackMap stack:
         1: aload 0 /* this */
            getfield org.h2.store.fs.FileNioMem.data:Lorg/h2/store/fs/FileNioMemData;
            invokevirtual org.h2.store.fs.FileNioMemData.getName:()Ljava/lang/String;
      StackMap locals:
      StackMap stack: java.lang.String
         2: areturn
        end local 0 // org.h2.store.fs.FileNioMem this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/h2/store/fs/FileNioMem;

  public java.nio.channels.SeekableByteChannel position(long);
    descriptor: (J)Ljava/nio/channels/SeekableByteChannel;
    flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
    Code:
      stack=3, locals=3, args_size=2
         0: .line 1
            aload 0
            lload 1
            invokevirtual org.h2.store.fs.FileNioMem.position:(J)Ljava/nio/channels/FileChannel;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
    Exceptions:
      throws java.io.IOException

  public java.nio.channels.SeekableByteChannel truncate(long);
    descriptor: (J)Ljava/nio/channels/SeekableByteChannel;
    flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
    Code:
      stack=3, locals=3, args_size=2
         0: .line 1
            aload 0
            lload 1
            invokevirtual org.h2.store.fs.FileNioMem.truncate:(J)Ljava/nio/channels/FileChannel;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
    Exceptions:
      throws java.io.IOException
}
SourceFile: "FilePathNioMem.java"
NestMembers:
  org.h2.store.fs.FileNioMem$1
InnerClasses:
  org.h2.store.fs.FileNioMem$1