Documentation
Table of contents

Enumeration BufferOverflowProtectionMode

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

  • JavaScript
  • Android
  • Objective-C
  • Swift
  • C++
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
}
@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;
}
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);
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
}
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_UPDATE = 1
} BufferOverflowProtectionMode;

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (2.2.20)
  • Version 2.x
    • Version 2.2.10
    • Version 2.2.0
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support