BarcodeRow.smali
.class final Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;
.super Ljava/lang/Object;
# instance fields
.field private currentLocation:I
.field private final row:[B
# direct methods
.method constructor <init>(I)V
.registers 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-array p1, p1, [B
iput-object p1, p0, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->row:[B
const/4 p1, 0x0
.line 3
iput p1, p0, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->currentLocation:I
return-void
.end method
# virtual methods
.method addBar(ZI)V
.registers 6
const/4 v0, 0x0
:goto_1
if-ge v0, p2, :cond_f
.line 1
iget v1, p0, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->currentLocation:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->currentLocation:I
invoke-virtual {p0, v1, p1}, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->set(IZ)V
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_f
return-void
.end method
.method getScaledRow(I)[B
.registers 7
.line 1
iget-object v0, p0, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->row:[B
array-length v0, v0
mul-int/2addr v0, p1
new-array v1, v0, [B
const/4 v2, 0x0
:goto_7
if-ge v2, v0, :cond_14
.line 3
iget-object v3, p0, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->row:[B
div-int v4, v2, p1
aget-byte v3, v3, v4
aput-byte v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_7
:cond_14
return-object v1
.end method
.method set(IB)V
.registers 4
.line 1
iget-object v0, p0, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->row:[B
aput-byte p2, v0, p1
return-void
.end method
.method set(IZ)V
.registers 4
.line 2
iget-object v0, p0, Lcom/dcloud/zxing2/pdf417/encoder/BarcodeRow;->row:[B
int-to-byte p2, p2
aput-byte p2, v0, p1
return-void
.end method