public final class MicroStreamAndroidAdapter extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
setupBasic()
Sets up the memory accessing logic to use
MemoryAccessorGeneric. |
static void |
setupFull()
Sets up the memory accessing logic to use
MemoryAccessorGeneric. |
static void |
setupWithInstantiator()
Sets up the memory accessing logic to use
MemoryAccessorGeneric. |
public static final void setupBasic()
MemoryAccessorGeneric.
No platform-specific DefaultInstantiator is set, meaning the behavior
defaults to public API functionality, i.e. requiring a default constructor to be
present for every generically handled class.
No platform-specific DirectBufferDeallocator is set, meaning the memory
allocated by direct byte buffers cannot be freed before the direct byte buffer
instance is garbage-collected.
See
this Stack Overflow question for an example why that might be a problem.
setupWithInstantiator(),
setupFull()public static final void setupWithInstantiator()
MemoryAccessorGeneric.
AndroidInstantiatorBlank ist used as the DefaultInstantiator implementation.
No platform-specific DirectBufferDeallocator is set, identical to setupBasic().
setupBasic(),
setupFull()public static final void setupFull()
MemoryAccessorGeneric.
AndroidInstantiatorBlank ist used as the DefaultInstantiator implementation.
AndroidDirectBufferDeallocator is used as the DirectBufferDeallocator.
setupBasic(),
setupWithInstantiator()Copyright © 2022 MicroStream Software. All rights reserved.