[ 
https://issues.apache.org/jira/browse/IGNITE-3839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15522936#comment-15522936
 ] 

Pavel Tupitsyn commented on IGNITE-3839:
----------------------------------------

* External user can get into this situation by casting IBinaryWriter to 
IBinaryRawWriter directly
* Adding checks to all raw write methods will be expensive (these methods are 
performance-critical).

Therefore, good solution may be to separate IBinaryWriter and IBinaryRawWriter 
implementations.

> .NET: BinaryWriter allows raw methods to be called before GetRawWriter call
> ---------------------------------------------------------------------------
>
>                 Key: IGNITE-3839
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3839
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 1.5.0.final
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Trivial
>              Labels: .net
>             Fix For: 1.8
>
>
> This leads to a situation where raw offset and flag are not set. Need to 
> either add a check with exception, or automatically switch to raw mode when 
> raw methods are called.
> This only affects internal code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to