RequestBody$2.smali

.class Ldc/squareup/okhttp3/RequestBody$2;
.super Ldc/squareup/okhttp3/RequestBody;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Ldc/squareup/okhttp3/RequestBody;->create(Ldc/squareup/okhttp3/MediaType;[BII)Ldc/squareup/okhttp3/RequestBody;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic val$byteCount:I

.field final synthetic val$content:[B

.field final synthetic val$contentType:Ldc/squareup/okhttp3/MediaType;

.field final synthetic val$offset:I


# direct methods
.method constructor <init>(Ldc/squareup/okhttp3/MediaType;I[BI)V
    .registers 5

    .line 1
    iput-object p1, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$contentType:Ldc/squareup/okhttp3/MediaType;

    iput p2, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$byteCount:I

    iput-object p3, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$content:[B

    iput p4, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$offset:I

    invoke-direct {p0}, Ldc/squareup/okhttp3/RequestBody;-><init>()V

    return-void
.end method


# virtual methods
.method public contentLength()J
    .registers 3

    .line 1
    iget v0, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$byteCount:I

    int-to-long v0, v0

    return-wide v0
.end method

.method public contentType()Ldc/squareup/okhttp3/MediaType;
    .registers 2

    .line 1
    iget-object v0, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$contentType:Ldc/squareup/okhttp3/MediaType;

    return-object v0
.end method

.method public writeTo(Ldc/squareup/okio/BufferedSink;)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$content:[B

    iget v1, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$offset:I

    iget v2, p0, Ldc/squareup/okhttp3/RequestBody$2;->val$byteCount:I

    invoke-interface {p1, v0, v1, v2}, Ldc/squareup/okio/BufferedSink;->write([BII)Ldc/squareup/okio/BufferedSink;

    return-void
.end method