Skip to content
This repository was archived by the owner on Jul 2, 2023. It is now read-only.
This repository was archived by the owner on Jul 2, 2023. It is now read-only.

读取字符串乱码bug #8

@GhostCakeMaker

Description

@GhostCakeMaker

StringColumn.cs文件中36行处方法DoLoad,修改个bug。之前一直解析乱码,修改后就好了。如下:

    protected override string DoLoad(byte[] buffer, int offset, Encoding encoding)
    {
        if (_parsedCharsBuffer == null)
        {
            _parsedCharsBuffer = new char[Size];
        }
        var bytes = buffer.Skip(offset).Take(Size).ToArray();
        
        var result = encoding.GetString(bytes).Trim('\0').Trim(' ');
        return result;
    }

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions