-
Notifications
You must be signed in to change notification settings - Fork 146
Conversation
|
||
internal override ReadOnlyMemory<byte> ToMemory() | ||
{ | ||
throw new NotSupportedException(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implement it as virtual
with this content by default in StackItem
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's internal
. So it is the same anyway.
|
||
internal override ReadOnlyMemory<byte> ToMemory() | ||
{ | ||
return value.IsZero ? ReadOnlyMemory<byte>.Empty : value.ToByteArray(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should cache the ToByteArray
the first time that will be used, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should cache the ToByteArray
the first time that will be used, what do you think?
But it's not related to this PR, so i approved
We can do optimizations later. |
No description provided.