UNPKG

xypriss-security

Version:

XyPriss Security is an advanced JavaScript security library designed for enterprise applications. It provides military-grade encryption, secure data structures, quantum-resistant cryptography, and comprehensive security utilities for modern web applicatio

57 lines (55 loc) 2.02 kB
/** * Memory Management Types for XyPrissSecurity * * This file contains all type definitions for the memory management system */ /** * Pool strategy enumeration */ var PoolStrategy; (function (PoolStrategy) { PoolStrategy["LIFO"] = "lifo"; PoolStrategy["FIFO"] = "fifo"; PoolStrategy["LRU"] = "lru"; PoolStrategy["ADAPTIVE"] = "adaptive"; })(PoolStrategy || (PoolStrategy = {})); /** * Memory event types */ var MemoryEventType; (function (MemoryEventType) { MemoryEventType["GC_TRIGGERED"] = "gc_triggered"; MemoryEventType["GC_COMPLETED"] = "gc_completed"; MemoryEventType["MEMORY_PRESSURE"] = "memory_pressure"; MemoryEventType["LEAK_DETECTED"] = "leak_detected"; MemoryEventType["POOL_CREATED"] = "pool_created"; MemoryEventType["POOL_DESTROYED"] = "pool_destroyed"; MemoryEventType["OBJECT_TRACKED"] = "object_tracked"; MemoryEventType["OBJECT_RELEASED"] = "object_released"; MemoryEventType["CONFIG_UPDATED"] = "config_updated"; MemoryEventType["ERROR_OCCURRED"] = "error_occurred"; })(MemoryEventType || (MemoryEventType = {})); /** * Memory pressure levels */ var MemoryPressureLevel; (function (MemoryPressureLevel) { MemoryPressureLevel["LOW"] = "low"; MemoryPressureLevel["MEDIUM"] = "medium"; MemoryPressureLevel["HIGH"] = "high"; MemoryPressureLevel["CRITICAL"] = "critical"; })(MemoryPressureLevel || (MemoryPressureLevel = {})); /** * Error types for memory management */ var MemoryErrorType; (function (MemoryErrorType) { MemoryErrorType["ALLOCATION_FAILED"] = "allocation_failed"; MemoryErrorType["POOL_OVERFLOW"] = "pool_overflow"; MemoryErrorType["LEAK_DETECTED"] = "leak_detected"; MemoryErrorType["GC_FAILED"] = "gc_failed"; MemoryErrorType["CONFIG_INVALID"] = "config_invalid"; MemoryErrorType["TRACKER_ERROR"] = "tracker_error"; })(MemoryErrorType || (MemoryErrorType = {})); export { MemoryErrorType, MemoryEventType, MemoryPressureLevel, PoolStrategy }; //# sourceMappingURL=types.js.map