.class public final Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b; .super Ljava/lang/Object; .source "DefaultImageHeaderParser.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "b" .end annotation # instance fields .field public final a:Ljava/nio/ByteBuffer; # direct methods .method public constructor ([BI)V .locals 1 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 invoke-static {p1}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer; move-result-object p1 sget-object v0, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder; invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer; move-result-object p1 invoke-virtual {p1, p2}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer; move-result-object p1 check-cast p1, Ljava/nio/ByteBuffer; iput-object p1, p0, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b;->a:Ljava/nio/ByteBuffer; return-void .end method # virtual methods .method public a(I)S .locals 1 const/4 v0, 0x2 .line 1 invoke-virtual {p0, p1, v0}, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b;->c(II)Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->getShort(I)S move-result p1 goto :goto_0 :cond_0 const/4 p1, -0x1 :goto_0 return p1 .end method .method public b(I)I .locals 1 const/4 v0, 0x4 .line 1 invoke-virtual {p0, p1, v0}, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b;->c(II)Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->getInt(I)I move-result p1 goto :goto_0 :cond_0 const/4 p1, -0x1 :goto_0 return p1 .end method .method public final c(II)Z .locals 1 .line 1 iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I move-result v0 sub-int/2addr v0, p1 if-lt v0, p2, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .end method .method public d()I .locals 1 .line 1 iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I move-result v0 return v0 .end method .method public e(Ljava/nio/ByteOrder;)V .locals 1 .line 1 iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser$b;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer; return-void .end method