IntUtils.smali
.class public Lcom/alivc/rtc/device/utils/IntUtils;
.super Ljava/lang/Object;
.source "IntUtils.java"
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 5
return-void
.end method
.method public static getBytes(I)[B
.registers 5
.param p0, "i" # I
.line 8
const/4 v0, 0x4
new-array v0, v0, [B
.line 9
.local v0, "bInt":[B
rem-int/lit16 v1, p0, 0x100
int-to-byte v1, v1
const/4 v2, 0x3
aput-byte v1, v0, v2
.line 10
shr-int/lit8 v1, p0, 0x8
.line 11
.local v1, "value":I
rem-int/lit16 v2, v1, 0x100
int-to-byte v2, v2
const/4 v3, 0x2
aput-byte v2, v0, v3
.line 12
shr-int/lit8 v1, v1, 0x8
.line 13
rem-int/lit16 v2, v1, 0x100
int-to-byte v2, v2
const/4 v3, 0x1
aput-byte v2, v0, v3
.line 14
shr-int/lit8 v1, v1, 0x8
.line 15
rem-int/lit16 v2, v1, 0x100
int-to-byte v2, v2
const/4 v3, 0x0
aput-byte v2, v0, v3
.line 16
return-object v0
.end method
.method public static getBytes([BI)[B
.registers 5
.param p0, "buffer" # [B
.param p1, "i" # I
.line 20
array-length v0, p0
const/4 v1, 0x4
if-ne v0, v1, :cond_23
.line 21
const/4 v0, 0x3
rem-int/lit16 v1, p1, 0x100
int-to-byte v1, v1
aput-byte v1, p0, v0
.line 22
shr-int/lit8 v0, p1, 0x8
.line 23
.local v0, "value":I
const/4 v1, 0x2
rem-int/lit16 v2, v0, 0x100
int-to-byte v2, v2
aput-byte v2, p0, v1
.line 24
shr-int/lit8 v0, v0, 0x8
.line 25
const/4 v1, 0x1
rem-int/lit16 v2, v0, 0x100
int-to-byte v2, v2
aput-byte v2, p0, v1
.line 26
shr-int/lit8 v0, v0, 0x8
.line 27
const/4 v1, 0x0
rem-int/lit16 v2, v0, 0x100
int-to-byte v2, v2
aput-byte v2, p0, v1
.line 28
return-object p0
.line 30
.end local v0 # "value":I
:cond_23
const/4 v0, 0x0
return-object v0
.end method