avmshell Namespace Reference


Classes

class  FileClass
class  ShellCodeContext
class  Shell
class  AvmplusScript
class  ShellToplevel
class  ByteArray
class  ByteArrayFile
class  ByteArrayObject
class  ByteArrayClass
class  ConsoleOutputStream
class  DataIOBase
class  DataInput
class  DataOutput
class  DomainObject
class  DomainClass
class  InputStream
class  FileInputStream
class  PlatformZlibStream
class  StringBuilderObject
class  StringBuilderClass
class  SystemClass

Typedefs

typedef unsigned char U8

Enumerations

enum  ObjectEncoding { kAMF0 = 0, kAMF3 = 3, kEncodeDefault = kAMF3 }
enum  Endian { kBigEndian = 0, kLittleEndian = 1 }

Functions

void alarmProc (int)
template<class T>
void CoreSwap (T &a, T &b)
void FlipU16 (uint16 &value)
void FlipU64 (uint64 &value)
void FlipU32 (uint32 &value)
bool PlatformZlibInflate (const U8 *pbCompressed, int nbCompressed, U8 *pbDecompressedOut, int *pnbDecompressedOut)

Variables

const int kScriptTimeout = 15
const int kScriptGracePeriod = 5
Shellshell = NULL
bool show_error = false


Typedef Documentation

typedef unsigned char avmshell::U8
 

Definition at line 139 of file DataIO.h.


Enumeration Type Documentation

enum avmshell::Endian
 

Enumerator:
kBigEndian 
kLittleEndian 

Definition at line 80 of file DataIO.h.

00081     {
00082         kBigEndian    = 0,
00083         kLittleEndian = 1
00084     };

enum avmshell::ObjectEncoding
 

Enumerator:
kAMF0 
kAMF3 
kEncodeDefault 

Definition at line 74 of file DataIO.h.

00074                         {
00075         kAMF0 = 0,
00076         kAMF3 = 3,
00077         kEncodeDefault = kAMF3  
00078     };


Function Documentation

void avmshell::alarmProc int   ) 
 

Definition at line 233 of file avmshell.cpp.

References avmplus::AvmCore::interrupted, and shell.

00234     {
00235         shell->interrupted = true;
00236     }

template<class T>
void avmshell::CoreSwap T &  a,
T &  b
[inline]
 

Definition at line 45 of file DataIO.h.

Referenced by FlipU16(), FlipU32(), and FlipU64().

00046     {
00047         T t = a;
00048         a = b;
00049         b = t;
00050     }

void avmshell::FlipU16 uint16 value  )  [inline]
 

Definition at line 52 of file DataIO.h.

References CoreSwap().

Referenced by avmshell::DataIOBase::ConvertU16().

00053     {
00054         uint8 *pa = (uint8 *)&(value);
00055         CoreSwap(pa[0], pa[1]);
00056     }

void avmshell::FlipU32 uint32 value  )  [inline]
 

Definition at line 67 of file DataIO.h.

References CoreSwap().

Referenced by avmshell::DataIOBase::ConvertU32().

00068     {
00069         uint8 *pa = (uint8 *)&(value);
00070         CoreSwap(pa[0], pa[3]);
00071         CoreSwap(pa[1], pa[2]);
00072     }

void avmshell::FlipU64 uint64 value  )  [inline]
 

Definition at line 58 of file DataIO.h.

References CoreSwap().

Referenced by avmshell::DataIOBase::ConvertU64().

00059     {
00060         uint8 *pa = (uint8 *)&(value);
00061         CoreSwap(pa[0], pa[7]);
00062         CoreSwap(pa[1], pa[6]);
00063         CoreSwap(pa[2], pa[5]);
00064         CoreSwap(pa[3], pa[4]);
00065     }

bool avmshell::PlatformZlibInflate const U8 pbCompressed,
int  nbCompressed,
U8 pbDecompressedOut,
int *  pnbDecompressedOut
[inline]
 

Definition at line 53 of file genericzlib.h.

References PLAYERASSERT.

00059 {
00060     PLAYERASSERT(nbCompressed > 0);
00061     PLAYERASSERT(*pnbDecompressedOut >= nbCompressed);
00062     PLAYERASSERT(sizeof(uLongf) == sizeof(int)); // Ensure cast is safe
00063 
00064     int error = uncompress(
00065                         pbDecompressedOut, 
00066                         (uLongf*) pnbDecompressedOut, 
00067                         pbCompressed, 
00068                         nbCompressed
00069                         );
00070 
00071     PLAYERASSERT(error == Z_OK);
00072     return (error == Z_OK);
00073 }


Variable Documentation

const int avmshell::kScriptGracePeriod = 5
 

Definition at line 149 of file avmshell.cpp.

const int avmshell::kScriptTimeout = 15
 

Definition at line 148 of file avmshell.cpp.

Shell* avmshell::shell = NULL
 

Definition at line 177 of file avmshell.cpp.

Referenced by alarmProc(), and avmplus::NativeID::shell_toplevel_v2a_ob_thunk().

bool avmshell::show_error = false
 

Definition at line 178 of file avmshell.cpp.


Generated on Sun Oct 12 18:51:30 2008 for Tamarin by  doxygen 1.4.6