Skip to content

Latest commit

 

History

History
74 lines (71 loc) · 2.37 KB

buffer-overflow-protection-mode-v3.0.0.md

File metadata and controls

74 lines (71 loc) · 2.37 KB
layout title description keywords needGenerateH3Content needAutoGenerateSidebar noTitleIndex breadcrumbText codeAutoHeight permalink
default-layout
BufferOverflowProtectionMode - Dynamsoft Core Enumerations
The enumeration BufferOverflowProtectionMode of Dynamsoft Core describes the protection modes when the buffer of ImageSourceAdapter is overflow.
Buffer overflow protection mode
true
true
true
BufferOverflowProtectionMode
true
/enums/core/buffer-overflow-protection-mode-v3.0.0.html

Enumeration BufferOverflowProtectionMode

BufferOverflowProtectionMode describes the protection modes to manage situations when the ImageSourceAdapter's buffer exceeds its capacity.

>- JavaScript >- Android >- Objective-C >- Swift >- C++ > > ```javascript enum EnumBufferOverflowProtectionMode { /** New images are blocked when the buffer is full.*/ BOPM_Block = 0, /** New images are appended at the end, and oldest images are pushed out frombeginning if the buffer is full.*/ BOPM_Update = 1 } ``` > ```java @Retention(RetentionPolicy.CLASS) public @interface EnumBufferOverflowProtectionMode { /** New images are blocked when the buffer is full.*/ public static final int BOPM_BLOCK = 0; /** New images are appended at the end, and oldest images are pushed out from the beginning if thebuffer is full.*/ public static final int BOPM_UPDATE = 1; } ``` > ```objc typedef NS_ENUM(NSInteger, DSBufferOverflowProtectionMode) { /** New images are blocked when the buffer is full.*/ DSBufferOverflowProtectionModeBlock = 0, /** New images are appended at the end, and oldest images are pushed out from the beginning if thebuffer is full.*/ DSBufferOverflowProtectionModeUpdate = 1, }NS_SWIFT_NAME(BufferOverflowProtectionMode); ``` > ```swift public enum BufferOverflowProtectionMode : Int { /** New images are blocked when the buffer is full.*/ block = 0 /** New images are appended at the end, and oldest images are pushed out from the beginning if thebuffer is full.*/ update = 1 } ``` > ```cpp typedef enum BufferOverflowProtectionMode { /** New images are blocked when the buffer is full. */ BOPM_BLOCK = 0, /** New images are appended at the end, and oldest images are pushed out from the beginning if the buffer is full. */ BOPM_APPEND = 1 } BufferOverflowProtectionMode; ```