Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
petrov-mg committed Nov 29, 2023
1 parent 34af0b8 commit 28d5a87
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public T Unmarshal<T>(byte[] data, BinaryMode mode = BinaryMode.Deserialize)
/// </returns>
public T Unmarshal<T>(IBinaryStream stream, bool keepBinary)
{
return Unmarshal<T>(stream, keepBinary ? BinaryMode.KeepBinary : BinaryMode.Deserialize, null);
return Unmarshal<T>(stream, keepBinary ? BinaryMode.ForceBinary : BinaryMode.Deserialize, null);
}

/// <summary>
Expand Down Expand Up @@ -305,7 +305,7 @@ public T Unmarshal<T>(IBinaryStream stream, BinaryMode mode, BinaryObjectBuilder
/// </returns>
public BinaryReader StartUnmarshal(IBinaryStream stream, bool keepBinary)
{
return new BinaryReader(this, stream, keepBinary ? BinaryMode.KeepBinary : BinaryMode.Deserialize, null);
return new BinaryReader(this, stream, keepBinary ? BinaryMode.ForceBinary : BinaryMode.Deserialize, null);
}

/// <summary>
Expand Down

0 comments on commit 28d5a87

Please sign in to comment.