You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Reads a byte array from the specified byte buffer at the given offset with length information.
522
+
/// </remarks>
523
+
/// <param name="buffer">要读取的字节跨度 / The byte span to read from.</param>
524
+
/// <param name="offset">读写操作的起始位置,读取后会自动增加相应字节数(4字节长度 + 数据长度)/ The starting position for read/write, automatically increments by the corresponding bytes (4-byte length + data length).</param>
525
+
/// <returns>返回读取的字节数组,如果长度为0则返回空数组 / Returns the read byte array; returns an empty array if length is 0.</returns>
526
+
/// <exception cref="ArgumentOutOfRangeException">当 <paramref name="offset"/> 为负数或超出缓冲区边界时抛出 / Thrown when <paramref name="offset"/> is negative or exceeds buffer bounds.</exception>
/// Reads a string from the specified byte buffer at the given offset with length information using UTF-8 decoding.
554
+
/// </remarks>
555
+
/// <param name="buffer">要读取的字节跨度 / The byte span to read from.</param>
556
+
/// <param name="offset">读写操作的起始位置,读取后会自动增加相应字节数(2字节长度 + UTF-8字节数据)/ The starting position for read/write, automatically increments by the corresponding bytes (2-byte length + UTF-8 data).</param>
557
+
/// <returns>返回读取的字符串,使用 UTF-8 解码,如果长度为0则返回空字符串 / Returns the read string using UTF-8 decoding; returns an empty string if length is 0.</returns>
558
+
/// <exception cref="ArgumentOutOfRangeException">当 <paramref name="offset"/> 为负数或超出缓冲区边界时抛出 / Thrown when <paramref name="offset"/> is negative or exceeds buffer bounds.</exception>
/// Reads a byte array of specified length starting from the specified offset.
585
+
/// </remarks>
586
+
/// <param name="buffer">要读取的字节跨度 / The byte span to read from.</param>
587
+
/// <param name="offset">读写操作的起始位置,读取后会自动增加相应字节数 / The starting position for read/write, automatically increments by the corresponding bytes.</param>
588
+
/// <param name="len">需要读取的字节数组长度 / The length of the byte array to read.</param>
589
+
/// <returns>返回从缓冲区读取的字节数组,如果长度小于等于0则返回空数组 / Returns the byte array read from the buffer; returns an empty array if length is less than or equal to 0.</returns>
590
+
/// <exception cref="ArgumentOutOfRangeException">当 <paramref name="offset"/> 为负数或超出缓冲区边界时抛出 / Thrown when <paramref name="offset"/> is negative or exceeds buffer bounds.</exception>
/// Reads a string of specified byte length starting from the specified offset using UTF-8 decoding.
616
+
/// </remarks>
617
+
/// <param name="buffer">要读取的字节跨度 / The byte span to read from.</param>
618
+
/// <param name="offset">读写操作的起始位置,读取后会自动增加相应字节数 / The starting position for read/write, automatically increments by the corresponding bytes.</param>
619
+
/// <param name="len">要读取的字符串字节长度 / The byte length of the string to read.</param>
620
+
/// <returns>返回读取的字符串,使用 UTF-8 解码,如果长度小于等于0则返回空字符串 / Returns the read string using UTF-8 decoding; returns an empty string if length is less than or equal to 0.</returns>
621
+
/// <exception cref="ArgumentOutOfRangeException">当 <paramref name="offset"/> 为负数或超出缓冲区边界时抛出 / Thrown when <paramref name="offset"/> is negative or exceeds buffer bounds.</exception>
0 commit comments