2011-11-07 01:29:50 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* Byte.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX Byte structure definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _SYSTEM_BYTE_
|
|
|
|
|
#define _SYSTEM_BYTE_
|
2011-05-02 17:33:24 +00:00
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
#include "Interfaces.h"
|
|
|
|
|
#include "Object.h"
|
2011-05-02 17:33:24 +00:00
|
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
// Represents an 8-bit unsigned integer.
|
|
|
|
|
struct Byte : public IComparable<Byte>, public IEquatable<Byte>, virtual Object
|
2011-05-02 17:33:24 +00:00
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
byte value;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static const byte MaxValue;
|
|
|
|
|
static const byte MinValue;
|
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
Byte(byte b);
|
2011-05-02 17:33:24 +00:00
|
|
|
|
|
|
|
|
|
int CompareTo(Byte other);
|
2011-11-07 01:29:50 +00:00
|
|
|
|
bool Equals(Byte other);
|
2011-05-02 17:33:24 +00:00
|
|
|
|
char* ToString();
|
|
|
|
|
static char* ToString(byte value);
|
|
|
|
|
|
|
|
|
|
bool operator!=(byte right);
|
|
|
|
|
bool operator!=(Byte right);
|
|
|
|
|
bool operator==(byte right);
|
|
|
|
|
bool operator==(Byte right);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
#endif //_SYSTEM_BYTE_
|