Export withBorshBufferOfInitSize
This commit is contained in:
parent
dd3eed5940
commit
3d24066eb6
1 changed files with 3 additions and 2 deletions
|
@ -12,6 +12,7 @@ module Foreign.Rust.Marshall.Variable (
|
|||
, getVarBuffer
|
||||
, withBorshVarBuffer
|
||||
, withBorshFailure
|
||||
, withBorshBufferOfInitSize
|
||||
-- ** Pure variants
|
||||
, withPureBorshVarBuffer
|
||||
, withPureBorshFailure
|
||||
|
@ -103,10 +104,10 @@ withPureBorshFailure :: forall a.
|
|||
withPureBorshFailure = unsafePerformIO . withBorshFailure
|
||||
|
||||
{-------------------------------------------------------------------------------
|
||||
Internal auxiliary
|
||||
Generalization
|
||||
-------------------------------------------------------------------------------}
|
||||
|
||||
-- | Generalization of 'withBorshVarBuffer' and 'withMaxBorshBuffer'
|
||||
-- | Variation on 'withBorshVarBuffer' with user-specified initial buffer size
|
||||
withBorshBufferOfInitSize :: forall a.
|
||||
( FromBorsh a
|
||||
, StaticBorshSize a ~ 'HasVariableSize
|
||||
|
|
Loading…
Reference in a new issue