diff --git a/lib/GMLIB_API-JS.d.ts b/lib/GMLIB_API-JS.d.ts index bf0f0f1..305cd76 100644 --- a/lib/GMLIB_API-JS.d.ts +++ b/lib/GMLIB_API-JS.d.ts @@ -1172,6 +1172,9 @@ declare class GMLIB_BinaryStream { /** 重置数据包 */ reset(): GMLIB_BinaryStream; + /** 转换成字符串 */ + toString(): string; + /** 写入数据 */ write( /** 数据 */ diff --git a/lib/GMLIB_API-JS.js b/lib/GMLIB_API-JS.js index 1646f1f..46a5d05 100644 --- a/lib/GMLIB_API-JS.js +++ b/lib/GMLIB_API-JS.js @@ -2203,6 +2203,14 @@ class GMLIB_BinaryStream { return this; } + /** + * 转换成字符串 + * @returns {string} 字符串 + */ + toString(){ + return `` + } + /** * 写入数据 * @param {{"type":string,"value":any}[]|{"type":string,"value":any}} value 数据