mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-24 06:10:09 +08:00
update
This commit is contained in:
parent
4cb4b3d9d4
commit
8123ea577e
@ -91,4 +91,13 @@ fun DataInputStream.readVarString(length:Int): String{
|
||||
}
|
||||
|
||||
|
||||
fun ByteArray.dataInputStream(): DataInputStream = DataInputStream(this.inputStream())
|
||||
fun ByteArray.dataInputStream(): DataInputStream = DataInputStream(this.inputStream())
|
||||
|
||||
/**
|
||||
* Reset and skip(position)
|
||||
*/
|
||||
fun <N : Number> DataInputStream.goto(position: N): DataInputStream {
|
||||
this.reset()
|
||||
this.skip(position.toLong());
|
||||
return this
|
||||
}
|
Loading…
Reference in New Issue
Block a user