Streams$AppendableWriter$CurrentWrite.smali 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .class Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/lang/CharSequence;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingClass;
  8. value = Lcom/google/gson/internal/Streams$AppendableWriter;
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x8
  12. name = "CurrentWrite"
  13. .end annotation
  14. # instance fields
  15. .field chars:[C
  16. # direct methods
  17. .method constructor <init>()V
  18. .locals 0
  19. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  20. return-void
  21. .end method
  22. # virtual methods
  23. .method public charAt(I)C
  24. .locals 1
  25. iget-object v0, p0, Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;->chars:[C
  26. aget-char p1, v0, p1
  27. return p1
  28. .end method
  29. .method public length()I
  30. .locals 1
  31. iget-object v0, p0, Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;->chars:[C
  32. array-length v0, v0
  33. return v0
  34. .end method
  35. .method public subSequence(II)Ljava/lang/CharSequence;
  36. .locals 2
  37. new-instance v0, Ljava/lang/String;
  38. iget-object v1, p0, Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;->chars:[C
  39. sub-int/2addr p2, p1
  40. invoke-direct {v0, v1, p1, p2}, Ljava/lang/String;-><init>([CII)V
  41. return-object v0
  42. .end method