Rizin
unix-like reverse engineering framework and cli tools
zstringlen Class Reference

#include <zstream.h>

Classes

struct  Val
 

Public Member Functions

 zstringlen (class izstream &)
 
 zstringlen (class ozstream &, const char *)
 
size_t value () const
 

Private Attributes

struct zstringlen::Val val
 

Detailed Description

Definition at line 40 of file zstream.h.

Constructor & Destructor Documentation

◆ zstringlen() [1/2]

zstringlen::zstringlen ( class izstream zs)
inline

Definition at line 129 of file zstream.h.

129  {
130  zs > val.byte;
131  if (val.byte == 255) zs > val.word;
132  else val.word = val.byte;
133 }
struct zstringlen::Val val
unsigned char byte
Definition: zstream.h:46
size_t word
Definition: zstream.h:46

References zstringlen::Val::byte, val, and zstringlen::Val::word.

◆ zstringlen() [2/2]

zstringlen::zstringlen ( class ozstream zs,
const char *  x 
)
inline

Definition at line 277 of file zstream.h.

277  {
278  val.byte = 255; val.word = ::strlen(x);
279  if (val.word < 255) zs < (val.byte = val.word);
280  else zs < val;
281 }
int x
Definition: mipsasm.c:20

References zstringlen::Val::byte, val, zstringlen::Val::word, and x.

Member Function Documentation

◆ value()

size_t zstringlen::value ( ) const
inline

Definition at line 44 of file zstream.h.

44 { return val.word; }

References val, and zstringlen::Val::word.

Referenced by capstone.arm64.Arm64Op::barrier(), capstone.m680x.M680xOp::const_val(), capstone.ppc.PpcOp::crx(), capstone.m68k.M68KOp::dimm(), capstone.m680x.M680xOp::direct_addr(), capstone.m680x.M680xOp::ext(), capstone.arm.ArmOp::fp(), capstone.arm64.Arm64Op::fp(), capstone.m680x.M680xOp::idx(), capstone.arm.ArmOp::imm(), capstone.arm64.Arm64Op::imm(), capstone.m680x.M680xOp::imm(), capstone.m68k.M68KOp::imm(), capstone.mips.MipsOp::imm(), capstone.ppc.PpcOp::imm(), capstone.sparc.SparcOp::imm(), capstone.systemz.SyszOp::imm(), capstone.tms320c64x.TMS320C64xOp::imm(), capstone.x86.X86Op::imm(), capstone.xcore.XcoreOp::imm(), capstone.arm.ArmOp::mem(), capstone.arm64.Arm64Op::mem(), capstone.mips.MipsOp::mem(), capstone.ppc.PpcOp::mem(), capstone.sparc.SparcOp::mem(), capstone.systemz.SyszOp::mem(), capstone.tms320c64x.TMS320C64xOp::mem(), capstone.x86.X86Op::mem(), capstone.xcore.XcoreOp::mem(), capstone.arm64.Arm64Op::prefetch(), capstone.arm64.Arm64Op::pstate(), capstone.arm.ArmOp::reg(), capstone.arm64.Arm64Op::reg(), capstone.m680x.M680xOp::reg(), capstone.m68k.M68KOp::reg(), capstone.mips.MipsOp::reg(), capstone.ppc.PpcOp::reg(), capstone.sparc.SparcOp::reg(), capstone.systemz.SyszOp::reg(), capstone.tms320c64x.TMS320C64xOp::reg(), capstone.x86.X86Op::reg(), capstone.xcore.XcoreOp::reg(), capstone.m680x.M680xOp::rel(), capstone.arm.ArmOp::setend(), capstone.m68k.M68KOp::simm(), and capstone.arm64.Arm64Op::sys().

Member Data Documentation

◆ val

struct zstringlen::Val zstringlen::val
private

Referenced by value(), and zstringlen().


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