feat: Add toString method to GMLIB_BinaryStream
This commit is contained in:
Vendored
+3
@@ -1172,6 +1172,9 @@ declare class GMLIB_BinaryStream {
|
||||
/** 重置数据包 */
|
||||
reset(): GMLIB_BinaryStream;
|
||||
|
||||
/** 转换成字符串 */
|
||||
toString(): string;
|
||||
|
||||
/** 写入数据 */
|
||||
write(
|
||||
/** 数据 */
|
||||
|
||||
@@ -2203,6 +2203,14 @@ class GMLIB_BinaryStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换成字符串
|
||||
* @returns {string} 字符串
|
||||
*/
|
||||
toString(){
|
||||
return `<GMLIB_BinaryStream#${this.#id}>`
|
||||
}
|
||||
|
||||
/**
|
||||
* 写入数据
|
||||
* @param {{"type":string,"value":any}[]|{"type":string,"value":any}} value 数据
|
||||
|
||||
Reference in New Issue
Block a user