Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skgpu::BufferWriter::Mark Struct Reference

#include <BufferWriter.h>

Public Member Functions

 Mark ()
 
 Mark (void *ptr, size_t offset=0)
 
bool operator< (const Mark &o) const
 
bool operator<= (const Mark &o) const
 
bool operator== (const Mark &o) const
 
bool operator!= (const Mark &o) const
 
bool operator>= (const Mark &o) const
 
bool operator> (const Mark &o) const
 
ptrdiff_t operator- (const Mark &o) const
 
 operator bool () const
 

Detailed Description

Definition at line 34 of file BufferWriter.h.

Constructor & Destructor Documentation

◆ Mark() [1/2]

skgpu::BufferWriter::Mark::Mark ( )
inline

Definition at line 36 of file BufferWriter.h.

36: Mark(nullptr) {}

◆ Mark() [2/2]

skgpu::BufferWriter::Mark::Mark ( void *  ptr,
size_t  offset = 0 
)
inline

Definition at line 37 of file BufferWriter.h.

38 : fMark(reinterpret_cast<uintptr_t>(ptr) + offset) {
39 SkASSERT(ptr || offset == 0);
40 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
SeparatedVector2 offset

Member Function Documentation

◆ operator bool()

skgpu::BufferWriter::Mark::operator bool ( ) const
inlineexplicit

Definition at line 51 of file BufferWriter.h.

51{ return *this != Mark(); }

◆ operator!=()

bool skgpu::BufferWriter::Mark::operator!= ( const Mark o) const
inline

Definition at line 45 of file BufferWriter.h.

45{ return fMark != o.fMark; }

◆ operator-()

ptrdiff_t skgpu::BufferWriter::Mark::operator- ( const Mark o) const
inline

Definition at line 49 of file BufferWriter.h.

49{ return fMark - o.fMark; }

◆ operator<()

bool skgpu::BufferWriter::Mark::operator< ( const Mark o) const
inline

Definition at line 42 of file BufferWriter.h.

42{ return fMark < o.fMark; }

◆ operator<=()

bool skgpu::BufferWriter::Mark::operator<= ( const Mark o) const
inline

Definition at line 43 of file BufferWriter.h.

43{ return fMark <= o.fMark; }

◆ operator==()

bool skgpu::BufferWriter::Mark::operator== ( const Mark o) const
inline

Definition at line 44 of file BufferWriter.h.

44{ return fMark == o.fMark; }

◆ operator>()

bool skgpu::BufferWriter::Mark::operator> ( const Mark o) const
inline

Definition at line 47 of file BufferWriter.h.

47{ return fMark > o.fMark; }

◆ operator>=()

bool skgpu::BufferWriter::Mark::operator>= ( const Mark o) const
inline

Definition at line 46 of file BufferWriter.h.

46{ return fMark >= o.fMark; }

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