public class ByteVector extends ObjectSE
| コンストラクターと説明 |
|---|
ByteVector() デフォルトの初期サイズで新しい ByteVector を構築します。 |
ByteVector(int initialSize) 指定された初期サイズで新しい ByteVector を構築します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
ByteVector | putByte(int b) バイトをこのバイトベクトルに入れます。 |
ByteVector | putByteArray(byte[] b, int off, int len) バイトの配列をこのバイトベクトルに入れます。 |
ByteVector | putInt(int i)int をこのバイトベクトルに入れます。 |
ByteVector | putLong(long l)long をこのバイトベクトルに入れます。 |
ByteVector | putShort(int s)short をこのバイトベクトルに入れます。 |
ByteVector | putUTF8(StringSE s)UTF8 文字列をこのバイトベクトルに入れます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic ByteVector()
ByteVector を構築します。public ByteVector(int initialSize)
ByteVector を構築します。initialSize - 構築されるバイトベクトルの初期サイズ。public ByteVector putByte(int b)
b - バイト。public ByteVector putShort(int s)
s - ショート。public ByteVector putInt(int i)
i - int。public ByteVector putLong(long l)
l - 長い。public ByteVector putUTF8(StringSE s)
s - UTF8 エンコードされた長さが 65536 未満である必要がある文字列。public ByteVector putByteArray(byte[] b, int off, int len)
b - バイトの配列。このバイトベクトルに len null バイトを入れるには、 null の場合があります。off - コピーする必要がある b の最初のバイトのインデックス。len - コピーする必要がある b のバイト数。