Map BufferedInputStream (#2860)

* Map BufferedInputStream

* Apply suggestions from code review

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update and rename BufferedInputStream.mapping to FixedBufferInputStream.mapping

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
apple502j 2021-11-21 03:11:51 +09:00 committed by GitHub
parent f870cc7ed4
commit fe93c6bbe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
CLASS net/minecraft/class_6826 net/minecraft/util/FixedBufferInputStream
FIELD field_36209 DEFAULT_BUFFER_SIZE I
FIELD field_36210 stream Ljava/io/InputStream;
FIELD field_36211 buf [B
FIELD field_36212 end I
FIELD field_36213 start I
METHOD <init> (Ljava/io/InputStream;)V
ARG 1 stream
METHOD <init> (Ljava/io/InputStream;I)V
ARG 1 stream
ARG 2 size
METHOD method_39779 getAvailableBuffer ()I
METHOD method_39780 fill ()V
METHOD read ([BII)I
ARG 1 buf
ARG 2 offset
ARG 3 length
METHOD skip (J)J
ARG 1 n