package com.l7tech.common.mime;

import com.l7tech.util.BufferPool;

final class c {
   private final byte[] a;
   private final int b;
   private final int c;
   private boolean d;

   c(byte[] var1, int var2, int var3) {
      this.a = var1;
      this.b = var2;
      this.c = var3;
      this.d = false;
   }

   boolean a() {
      return this.a != null && this.a.length == this.c && this.b == 0;
   }

   boolean b() {
      return this.d;
   }

   void c() {
      this.d = true;
   }

   void d() {
      if (!this.b()) {
         BufferPool.returnBuffer(this.a);
      }
   }
}
