63 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class Lcom/google/flatbuffers/FlatBufferBuilder$ByteBufferBackedInputStream;
 | |
| .super Ljava/io/InputStream;
 | |
| .source "FlatBufferBuilder.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lcom/google/flatbuffers/FlatBufferBuilder;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x9
 | |
|     name = "ByteBufferBackedInputStream"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public buf:Ljava/nio/ByteBuffer;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Ljava/nio/ByteBuffer;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/flatbuffers/FlatBufferBuilder$ByteBufferBackedInputStream;->buf:Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public read()I
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Lcom/google/flatbuffers/FlatBufferBuilder$ByteBufferBackedInputStream;->buf:Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/nio/ByteBuffer;->get()B
 | |
| 
 | |
|     move-result v0
 | |
|     :try_end_0
 | |
|     .catch Ljava/nio/BufferUnderflowException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     and-int/lit16 v0, v0, 0xff
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :catch_0
 | |
|     const/4 v0, -0x1
 | |
| 
 | |
|     return v0
 | |
| .end method
 |