👎Deprecated:
block-sys
is deprecated. Use block2::ffi
insteadExpand description
Raw bindings to Apple’s C language extension of blocks
This crate is deprecated. Use block2::ffi
instead.
The documentation for these bindings is a mix from GNUStep’s and Apple’s sources, but the ABI specification is really the place you should be looking!
See also the README.md
for more
background information, and for how to configure the desired runtime.
Structs
- Block_byrefDeprecatedStructure used for on-stack variables that are referenced by blocks.
- Structure used for on-stack variables that are referenced by blocks.
- Block_byref_headerDeprecatedStructure used for on-stack variables that are referenced by blocks.
- Block_descriptorDeprecatedBlock descriptor that contains copy and dispose operations.
- Block_descriptor_basicDeprecatedExtended block descriptor that does not contain copy and dispose helper functions.
- Block_descriptor_headerDeprecated
- Block_descriptor_with_signatureDeprecatedRequires BLOCK_HAS_COPY_DISPOSE and BLOCK_HAS_SIGNATURE
- Block_layoutDeprecated
- ClassDeprecated
Constants
- BLOCK_BYREF_CALLERDeprecatedThe field is an indirect reference to a variable declared with the __block storage qualifier.
- BLOCK_FIELD_IS_BLOCKDeprecatedThe field is a block. This must be copied by the block copy functions.
- BLOCK_FIELD_IS_BYREFDeprecatedThe field is an indirect reference to a variable declared with the __block storage qualifier.
- BLOCK_FIELD_IS_OBJECTDeprecatedThe value is of some id-like type, and should be copied as an Objective-C object: i.e. by sending -retain or via the GC assign functions in GC mode (not yet supported).
- BLOCK_FIELD_IS_WEAKDeprecatedThe field is an indirect reference to a variable declared with the __block storage qualifier.
- BLOCK_HAS_COPY_DISPOSEDeprecatedThe block descriptor contains copy and dispose helpers. compiler
- BLOCK_HAS_CTORDeprecatedThe helpers have C++ code. compiler: helpers have C++ code
- compiler
- BLOCK_HAS_SIGNATUREDeprecatedBlock has an Objective-C type encoding. compiler
- compiler
- compiler
- BLOCK_IS_GLOBALDeprecatedBlock is stored in global memory and does not need to be copied. compiler
- compiler
- runtime
- BLOCK_REFCOUNT_MASKDeprecated
- compiler
- BLOCK_USE_STRETDeprecatedBlock function uses a calling convention that returns a structure via a pointer passed in by the caller.
Statics
- _NSConcreteGlobalBlockDeprecated
- _NSConcreteMallocBlockDeprecated
- _NSConcreteStackBlockDeprecated
Functions
- _Block_copy⚠Deprecated
- _Block_object_assign⚠DeprecatedRuntime entry point called by compiler when assigning objects inside copy helper routines
- _Block_object_dispose⚠Deprecatedruntime entry point called by the compiler when disposing of objects inside dispose helper routine
- _Block_release⚠Deprecated
Type Aliases
- block_assign_dispose_flagsDeprecatedFlags used in the final argument to _Block_object_assign() and _Block_object_dispose(). These indicate the type of copy or dispose to perform. Values for _Block_object_assign() and _Block_object_dispose() parameters
- block_flagsDeprecatedBlock descriptor flags. Values for Block_layout->flags to describe block objects