Skip to content

Commit

Permalink
Fixed DeletableRefSerializer issue: cut of last byte.
Browse files Browse the repository at this point in the history
  • Loading branch information
antontaranovformcom committed Dec 12, 2023
1 parent 93a4cfd commit 390a5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZoneTree/Serializers/DeletableRefSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public byte[] Serialize(in Deletable<TValue> entry)
var len = b1.Length;
var b2 = new byte[len + 1];
Array.Copy(b1, b2, len);
b2[len - 1] = entry.IsDeleted ? (byte)1 : (byte)0;
b2[len] = entry.IsDeleted ? (byte)1 : (byte)0;
return b2;
}
}

0 comments on commit 390a5df

Please sign in to comment.