Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
skjpeg_error_mgr Struct Reference

#include <SkJpegPriv.h>

Inheritance diagram for skjpeg_error_mgr:

Classes

class  AutoPushJmpBuf
 

Public Member Functions

void push (jmp_buf *j)
 
void pop (jmp_buf *j)
 

Public Attributes

jmp_buf * fStack [4] = {}
 

Detailed Description

Definition at line 28 of file SkJpegPriv.h.

Member Function Documentation

◆ pop()

void skjpeg_error_mgr::pop ( jmp_buf *  j)
inline

Definition at line 48 of file SkJpegPriv.h.

48 {
49 SkASSERT(fStack[0] == j); // if we assert here, the pushes and pops were unbalanced
50 fStack[0] = fStack[1];
51 fStack[1] = fStack[2];
52 fStack[2] = fStack[3];
53 fStack[3] = nullptr;
54 }
#define SkASSERT(cond)
Definition SkAssert.h:116
jmp_buf * fStack[4]
Definition SkJpegPriv.h:56

◆ push()

void skjpeg_error_mgr::push ( jmp_buf *  j)
inline

Definition at line 40 of file SkJpegPriv.h.

40 {
41 SkASSERT(fStack[3] == nullptr); // if we assert here, the stack has overflowed
42 fStack[3] = fStack[2];
43 fStack[2] = fStack[1];
44 fStack[1] = fStack[0];
45 fStack[0] = j;
46 }

Member Data Documentation

◆ fStack

jmp_buf* skjpeg_error_mgr::fStack[4] = {}

Definition at line 56 of file SkJpegPriv.h.

56{};

The documentation for this struct was generated from the following file: