Class MemBuf.MemBufWriter
java.lang.Object
io.github.turtleisaac.nds4j.framework.MemBuf.MemBufWriter
- Enclosing class:
MemBuf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalign
(int alignment) align
(int alignment, byte fill) int
void
setPosition
(int pos) void
skip
(int n) write
(byte... bytes) write
(byte[] bytes, int srcPos, int length) writes provided bytes at current offsetwrite
(short... shorts) writeAt
(byte[] bytes, int srcPos, int writeOffset, int length) writes provided bytes at specified offsetwriteByte
(byte b) writeByteNumTimes
(byte b, int numTimes) writeByteNumTimesAt
(byte b, int numTimes, int writeOffset) writeBytes
(int... bytes) writeInt
(int i) writeShort
(short s) writeString
(String s, int len) writeUInt32
(long i)
-
Constructor Details
-
MemBufWriter
public MemBufWriter()
-
-
Method Details
-
getPosition
public int getPosition() -
setPosition
public void setPosition(int pos) -
skip
public void skip(int n) -
writeInt
-
writeUInt32
-
writeShort
-
writeByte
-
writeBytes
-
write
-
write
-
writeString
-
writeString
-
write
writes provided bytes at current offset -
writeAt
writes provided bytes at specified offset- Parameters:
bytes
-srcPos
-writeOffset
-length
-- Returns:
-
writeByteNumTimes
-
writeByteNumTimesAt
-
align
-
align
-