Home > rc-js-util > DebugProtectedView
Provides a view of an object that can be invalidated, causing attempts to access it to error in _BUILD.DEBUG
.
Signature:
export declare class DebugProtectedView<T extends object> implements IDebugProtectedView
Implements: IDebugProtectedView
Allows the specification of safeKeys
, accessing of these is not an error regardless of invalidation state.
Constructor | Modifiers | Description |
---|---|---|
(constructor)(owningInstance, debugInfo, safeKeys) | Constructs a new instance of the DebugProtectedView class |
Property | Modifiers | Type | Description |
---|---|---|---|
createTypedArrayView | static |
<TCtor extends TTypedArrayCtor>(owningInstance: IEmscriptenWrapper<object>) => DebugProtectedView<InstanceType<TCtor>> | |
owningInstance | IEmscriptenWrapper<object> |
Method | Modifiers | Description |
---|---|---|
createProtectedView(view) | ||
invalidate() | ||
unwrapProtectedView(view) | static |