mirror of
https://github.com/ceph/go-ceph
synced 2024-12-28 01:02:09 +00:00
e01eb03284
Our first operation is generating sizes for various caller-allocated buffers. The WithSizes function "suggests" sizes to an anonymous function that takes a size as an argument and returns a hint how sucessful the attempt was. If required the same function is called again with a larger size. Errors and other results of that anonymous function are "communicated" with variables of the surrounding scope in wich the function is defined. Signed-off-by: John Mulligan <jmulligan@redhat.com> Signed-off-by: Sven Anderson <sven@redhat.com> |
||
---|---|---|
.. | ||
example_sizer_test.go | ||
sizer_test.go | ||
sizer.go |