.class final Lcom/google/zxing/pdf417/encoder/BarcodeRow; .super Ljava/lang/Object; .source "BarcodeRow.java" # instance fields .field private currentLocation:I .field private final row:[B # direct methods .method constructor (I)V .locals 0 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 new-array p1, p1, [B iput-object p1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B const/4 p1, 0x0 .line 3 iput p1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->currentLocation:I return-void .end method .method private set(IZ)V .locals 1 .line 2 iget-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B int-to-byte p2, p2 aput-byte p2, v0, p1 return-void .end method # virtual methods .method addBar(ZI)V .locals 3 const/4 v0, 0x0 :goto_0 if-ge v0, p2, :cond_0 .line 1 iget v1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->currentLocation:I add-int/lit8 v2, v1, 0x1 iput v2, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->currentLocation:I invoke-direct {p0, v1, p1}, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->set(IZ)V add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_0 return-void .end method .method getScaledRow(I)[B .locals 4 .line 1 iget-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B array-length v0, v0 mul-int v0, v0, p1 new-array v0, v0, [B const/4 v1, 0x0 .line 2 :goto_0 array-length v2, v0 if-ge v1, v2, :cond_0 .line 3 iget-object v2, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B div-int v3, v1, p1 aget-byte v2, v2, v3 aput-byte v2, v0, v1 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_0 return-object v0 .end method .method set(IB)V .locals 1 .line 1 iget-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B aput-byte p2, v0, p1 return-void .end method