Skip to content

BitArray not deserializing #399

Open
@slrx4

Description

@slrx4

When I deserialize BitArray in Unity it just returns an empty BitArray (not null) with 0 length. Everything else is working great. This is how I deserialize:

using (FileStream _fileStream = new FileStream(_path, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, true))
{
    chunkLocal.Chunk = await MemoryPackSerializer.DeserializeAsync<Chunk>(_fileStream);
}

but I tried other deserializing approaches too, still other fields are working but not the BitArray. It seems to be serializing correctly because I can see the file size growing. Am I missing something? Do I have to do some extra stuff for BitArrays?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions