granularity level: instruction

		.class public final Lcom/google/android/gms/common/util/DataUtils;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"




.method public constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static copyStringToBuffer(Ljava/lang/String;Landroid/database/CharArrayBuffer;)V
	.locals 3

	invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v0
	const/4 v1, 0x0
	if-eqz v0, :cond_0
	iput v1, p1, Landroid/database/CharArrayBuffer;->sizeCopied:I
	return-void
	:cond_0
	iget-object v0, p1, Landroid/database/CharArrayBuffer;->data:[C
	if-eqz v0, :cond_2
	iget-object v0, p1, Landroid/database/CharArrayBuffer;->data:[C
	array-length v0, v0
	invoke-virtual {p0}, Ljava/lang/String;->length()I
	move-result v2
	if-ge v0, v2, :cond_1
	goto :goto_0
	:cond_1
	invoke-virtual {p0}, Ljava/lang/String;->length()I
	move-result v0
	iget-object v2, p1, Landroid/database/CharArrayBuffer;->data:[C
	invoke-virtual {p0, v1, v0, v2, v1}, Ljava/lang/String;->getChars(II[CI)V
	goto :goto_1
	:cond_2
	:goto_0
	invoke-virtual {p0}, Ljava/lang/String;->toCharArray()[C
	move-result-object v0
	iput-object v0, p1, Landroid/database/CharArrayBuffer;->data:[C
	:goto_1
	invoke-virtual {p0}, Ljava/lang/String;->length()I
	move-result p0
	iput p0, p1, Landroid/database/CharArrayBuffer;->sizeCopied:I
	return-void
.end method

.method public static loadImageBytes(Landroid/graphics/Bitmap;)[B
	.locals 3

	new-instance v0, Ljava/io/ByteArrayOutputStream;
	invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
	sget-object v1, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;
	const/16 v2, 0x64
	invoke-virtual {p0, v1, v2, v0}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z
	invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
	move-result-object p0
	return-object p0
.end method