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
|
, getVarBuffer
|
||||||
, withBorshVarBuffer
|
, withBorshVarBuffer
|
||||||
, withBorshFailure
|
, withBorshFailure
|
||||||
|
, withBorshBufferOfInitSize
|
||||||
-- ** Pure variants
|
-- ** Pure variants
|
||||||
, withPureBorshVarBuffer
|
, withPureBorshVarBuffer
|
||||||
, withPureBorshFailure
|
, withPureBorshFailure
|
||||||
|
@ -103,10 +104,10 @@ withPureBorshFailure :: forall a.
|
||||||
withPureBorshFailure = unsafePerformIO . withBorshFailure
|
withPureBorshFailure = unsafePerformIO . withBorshFailure
|
||||||
|
|
||||||
{-------------------------------------------------------------------------------
|
{-------------------------------------------------------------------------------
|
||||||
Internal auxiliary
|
Generalization
|
||||||
-------------------------------------------------------------------------------}
|
-------------------------------------------------------------------------------}
|
||||||
|
|
||||||
-- | Generalization of 'withBorshVarBuffer' and 'withMaxBorshBuffer'
|
-- | Variation on 'withBorshVarBuffer' with user-specified initial buffer size
|
||||||
withBorshBufferOfInitSize :: forall a.
|
withBorshBufferOfInitSize :: forall a.
|
||||||
( FromBorsh a
|
( FromBorsh a
|
||||||
, StaticBorshSize a ~ 'HasVariableSize
|
, StaticBorshSize a ~ 'HasVariableSize
|
||||||
|
|
Loading…
Reference in a new issue