zylog
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
but I think they should have made it more like
Rent(16)
, Rent(32)
, Rent(64)
... etc instead of Rent(int)
>>> this sends the wrong message that we could send an array of length 14 or 15 which is not true104 replies
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
oh shit I got it ...
Rent()
has fixed values , and @TeBeConsulting @gerard was right , its just not large enough for the data I was trying to send
but the fixed value part was the surprise for me
Example
Rent(1), Rent(2), Rent(3), Rent(4), Rent(5), ... Rent(16)
all have the same array length (16)
and
Rent(17), Rent(18), Rent(19), Rent(20), Rent(21), ... Rent(32)
all have the same array length (32)
and
Rent(33), Rent(34), Rent(35), Rent(36), Rent(37), ... Rent(64)
all have the same array length (64)104 replies
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
I think I get what u meant.
I dont wanna bother u any longer , let me do few debugs and try to make sense of what exactly in the buffer and how long is it and I'd return with an update if i figured it out , but you said kinda make sense but also I feel I need to learn how pool array works in depth
104 replies
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
@gerard im just updating a program that isnt mine
the original code had only
string
and it was Rent(5)
== > that was working very well.
but not I've added a bool and 4 other Integers ( to be converted to Enum on the client side later )
I couldnt leave Rent(5) as its because of the error , and when I raise it above 18 (aka: Rent(18) ) it works
what could be the issue ?104 replies