You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-1
Original file line number
Diff line number
Diff line change
@@ -174,4 +174,42 @@ This library is faster than the official implementation because it uses unsafe c
174
174
2.**Do not use** the writer after disposing the allocator. When using `LibProtoZeroSharp.Debug` you will get managed exceptions, but in release mode, you will get segmentation faults!
175
175
3.**Do not use** the generated structures after disposing the allocator. No matter if you use debug or release mode, you will get segmentation faults!
176
176
4. You may copy the generated structures, but remember that they are just a shallow copy. And you may not use them after disposing the allocator.
177
-
5.**Do not copy** the allocator! It is a struct and copying it will lead to bugs. Always pass it by `ref`.
177
+
5.**Do not copy** the allocator! It is a struct and copying it will lead to bugs. Always pass it by `ref`.
This is a Release-mode library with commented out safety checks, so that it is faster, but also potential misusage (i.e. ReadMessage when the current tag is a varint) may lead to segmentation faults. Include `ProtobufZeroSharp.Debug` package for additional safety checks.
0 commit comments