ProtoLiteUtils$2.smali
.class final Lio/grpc/protobuf/lite/ProtoLiteUtils$2;
.super Ljava/lang/Object;
.source "ProtoLiteUtils.java"
# interfaces
.implements Lio/grpc/Metadata$BinaryMarshaller;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/grpc/protobuf/lite/ProtoLiteUtils;->metadataMarshaller(Lcom/google/protobuf/x;)Lio/grpc/Metadata$BinaryMarshaller;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lio/grpc/Metadata$BinaryMarshaller<",
"TT;>;"
}
.end annotation
# instance fields
.field final synthetic val$instance:Lcom/google/protobuf/x;
# direct methods
.method constructor <init>(Lcom/google/protobuf/x;)V
.registers 2
.line 1
iput-object p1, p0, Lio/grpc/protobuf/lite/ProtoLiteUtils$2;->val$instance:Lcom/google/protobuf/x;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public parseBytes([B)Lcom/google/protobuf/x;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"([B)TT;"
}
.end annotation
.line 2
:try_start_0
iget-object v0, p0, Lio/grpc/protobuf/lite/ProtoLiteUtils$2;->val$instance:Lcom/google/protobuf/x;
invoke-interface {v0}, Lcom/google/protobuf/x;->getParserForType()Lcom/google/protobuf/A;
move-result-object v0
# getter for: Lio/grpc/protobuf/lite/ProtoLiteUtils;->globalRegistry:Lcom/google/protobuf/l;
invoke-static {}, Lio/grpc/protobuf/lite/ProtoLiteUtils;->access$000()Lcom/google/protobuf/l;
move-result-object v1
invoke-interface {v0, p1, v1}, Lcom/google/protobuf/A;->a([BLcom/google/protobuf/l;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/protobuf/x;
:try_end_10
.catch Lcom/google/protobuf/InvalidProtocolBufferException; {:try_start_0 .. :try_end_10} :catch_11
return-object p1
:catch_11
move-exception p1
.line 3
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
throw v0
.end method
.method public bridge synthetic parseBytes([B)Ljava/lang/Object;
.registers 2
.line 1
invoke-virtual {p0, p1}, Lio/grpc/protobuf/lite/ProtoLiteUtils$2;->parseBytes([B)Lcom/google/protobuf/x;
move-result-object p1
return-object p1
.end method
.method public toBytes(Lcom/google/protobuf/x;)[B
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)[B"
}
.end annotation
.line 2
invoke-interface {p1}, Lcom/google/protobuf/x;->toByteArray()[B
move-result-object p1
return-object p1
.end method
.method public bridge synthetic toBytes(Ljava/lang/Object;)[B
.registers 2
.line 1
check-cast p1, Lcom/google/protobuf/x;
invoke-virtual {p0, p1}, Lio/grpc/protobuf/lite/ProtoLiteUtils$2;->toBytes(Lcom/google/protobuf/x;)[B
move-result-object p1
return-object p1
.end method