2022-06-10 21:38:30 +09:00

40 lines
776 B
Smali

.class public final Lcom/google/android/exoplayer2/upstream/Allocation;
.super Ljava/lang/Object;
.source "Allocation.java"
# instance fields
.field public final data:[B
.field private final offset:I
# direct methods
.method public constructor <init>([BI)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/android/exoplayer2/upstream/Allocation;->data:[B
.line 3
iput p2, p0, Lcom/google/android/exoplayer2/upstream/Allocation;->offset:I
return-void
.end method
# virtual methods
.method public translateOffset(I)I
.locals 1
.line 1
iget v0, p0, Lcom/google/android/exoplayer2/upstream/Allocation;->offset:I
add-int/2addr v0, p1
return v0
.end method