99 lines
2.9 KiB
Smali
99 lines
2.9 KiB
Smali
.class Lrx/internal/operators/OperatorBufferWithSize$BufferExact$1;
|
|
.super Ljava/lang/Object;
|
|
.source "OperatorBufferWithSize.java"
|
|
|
|
# interfaces
|
|
.implements Lrx/Producer;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->createProducer()Lrx/Producer;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lrx/internal/operators/OperatorBufferWithSize$BufferExact;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lrx/internal/operators/OperatorBufferWithSize$BufferExact;)V
|
|
.locals 0
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OperatorBufferWithSize$BufferExact$1;, "Lrx/internal/operators/OperatorBufferWithSize$BufferExact.1;"
|
|
iput-object p1, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact$1;->this$0:Lrx/internal/operators/OperatorBufferWithSize$BufferExact;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public request(J)V
|
|
.locals 7
|
|
.param p1, "n" # J
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OperatorBufferWithSize$BufferExact$1;, "Lrx/internal/operators/OperatorBufferWithSize$BufferExact.1;"
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v2, p1, v4
|
|
|
|
if-gez v2, :cond_0
|
|
|
|
new-instance v2, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "n >= required but it was "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_0
|
|
cmp-long v2, p1, v4
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v2, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact$1;->this$0:Lrx/internal/operators/OperatorBufferWithSize$BufferExact;
|
|
|
|
iget v2, v2, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->count:I
|
|
|
|
int-to-long v2, v2
|
|
|
|
invoke-static {p1, p2, v2, v3}, Lrx/internal/operators/BackpressureUtils;->multiplyCap(JJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
.local v0, "u":J
|
|
iget-object v2, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact$1;->this$0:Lrx/internal/operators/OperatorBufferWithSize$BufferExact;
|
|
|
|
invoke-static {v2, v0, v1}, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->access$000(Lrx/internal/operators/OperatorBufferWithSize$BufferExact;J)V
|
|
|
|
.end local v0 # "u":J
|
|
:cond_1
|
|
return-void
|
|
.end method
|