CallServerInterceptor$CountingSink.smali 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .class final Lokhttp3/internal/http/CallServerInterceptor$CountingSink;
  2. .super Lokio/ForwardingSink;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingClass;
  6. value = Lokhttp3/internal/http/CallServerInterceptor;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x18
  10. name = "CountingSink"
  11. .end annotation
  12. # instance fields
  13. .field successfulCount:J
  14. # direct methods
  15. .method constructor <init>(Lokio/Sink;)V
  16. .locals 0
  17. invoke-direct {p0, p1}, Lokio/ForwardingSink;-><init>(Lokio/Sink;)V
  18. return-void
  19. .end method
  20. # virtual methods
  21. .method public write(Lokio/Buffer;J)V
  22. .locals 2
  23. .annotation system Ldalvik/annotation/Throws;
  24. value = {
  25. Ljava/io/IOException;
  26. }
  27. .end annotation
  28. invoke-super {p0, p1, p2, p3}, Lokio/ForwardingSink;->write(Lokio/Buffer;J)V
  29. iget-wide v0, p0, Lokhttp3/internal/http/CallServerInterceptor$CountingSink;->successfulCount:J
  30. add-long/2addr v0, p2
  31. iput-wide v0, p0, Lokhttp3/internal/http/CallServerInterceptor$CountingSink;->successfulCount:J
  32. return-void
  33. .end method