g$a.smali
.class public final Ll1/g$a;
.super Ljava/lang/Object;
.source "DefaultImageHeaderParser.java"
# interfaces
.implements Ll1/g$c;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ll1/g;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
.field public final a:Ljava/nio/ByteBuffer;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Ljava/nio/ByteBuffer;)V
.registers 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Ll1/g$a;->a:Ljava/nio/ByteBuffer;
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;
return-void
.end method
# virtual methods
.method public a()I
.registers 3
invoke-virtual {p0}, Ll1/g$a;->c()I
move-result v0
shl-int/lit8 v0, v0, 0x8
const v1, 0xff00
and-int/2addr v0, v1
invoke-virtual {p0}, Ll1/g$a;->c()I
move-result v1
and-int/lit16 v1, v1, 0xff
or-int/2addr v0, v1
return v0
.end method
.method public a([BI)I
.registers 5
iget-object v0, p0, Ll1/g$a;->a:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I
move-result p2
if-nez p2, :cond_e
const/4 p1, -0x1
return p1
:cond_e
iget-object v0, p0, Ll1/g$a;->a:Ljava/nio/ByteBuffer;
const/4 v1, 0x0
invoke-virtual {v0, p1, v1, p2}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;
return p2
.end method
.method public b()S
.registers 2
invoke-virtual {p0}, Ll1/g$a;->c()I
move-result v0
and-int/lit16 v0, v0, 0xff
int-to-short v0, v0
return v0
.end method
.method public c()I
.registers 3
iget-object v0, p0, Ll1/g$a;->a:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
const/4 v1, 0x1
if-ge v0, v1, :cond_b
const/4 v0, -0x1
return v0
:cond_b
iget-object v0, p0, Ll1/g$a;->a:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->get()B
move-result v0
return v0
.end method
.method public skip(J)J
.registers 5
iget-object v0, p0, Ll1/g$a;->a:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
int-to-long v0, v0
invoke-static {v0, v1, p1, p2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
long-to-int p2, p1
iget-object p1, p0, Ll1/g$a;->a:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
move-result v0
add-int/2addr v0, p2
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
int-to-long p1, p2
return-wide p1
.end method