RequestBody$2.smali 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .class final Lokhttp3/RequestBody$2;
  2. .super Lokhttp3/RequestBody;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x0
  10. name = null
  11. .end annotation
  12. # instance fields
  13. .field final synthetic val$byteCount:I
  14. .field final synthetic val$content:[B
  15. .field final synthetic val$contentType:Lokhttp3/MediaType;
  16. .field final synthetic val$offset:I
  17. # direct methods
  18. .method constructor <init>(Lokhttp3/MediaType;I[BI)V
  19. .locals 0
  20. iput-object p1, p0, Lokhttp3/RequestBody$2;->val$contentType:Lokhttp3/MediaType;
  21. iput p2, p0, Lokhttp3/RequestBody$2;->val$byteCount:I
  22. iput-object p3, p0, Lokhttp3/RequestBody$2;->val$content:[B
  23. iput p4, p0, Lokhttp3/RequestBody$2;->val$offset:I
  24. invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
  25. return-void
  26. .end method
  27. # virtual methods
  28. .method public contentLength()J
  29. .locals 2
  30. iget v0, p0, Lokhttp3/RequestBody$2;->val$byteCount:I
  31. int-to-long v0, v0
  32. return-wide v0
  33. .end method
  34. .method public contentType()Lokhttp3/MediaType;
  35. .locals 1
  36. iget-object v0, p0, Lokhttp3/RequestBody$2;->val$contentType:Lokhttp3/MediaType;
  37. return-object v0
  38. .end method
  39. .method public writeTo(Lokio/BufferedSink;)V
  40. .locals 3
  41. .annotation system Ldalvik/annotation/Throws;
  42. value = {
  43. Ljava/io/IOException;
  44. }
  45. .end annotation
  46. iget-object v0, p0, Lokhttp3/RequestBody$2;->val$content:[B
  47. iget v1, p0, Lokhttp3/RequestBody$2;->val$offset:I
  48. iget v2, p0, Lokhttp3/RequestBody$2;->val$byteCount:I
  49. invoke-interface {p1, v0, v1, v2}, Lokio/BufferedSink;->write([BII)Lokio/BufferedSink;
  50. return-void
  51. .end method