#include <DataOutput.h>
Public Member Functions | |
virtual void | writeInt (int value)=0 |
Writes an int value, which is comprised of four bytes, to the output stream. | |
virtual void | writeLong (long long value)=0 |
Writes a long value, which is comprised of eight bytes, to the output stream. | |
virtual void | writeShort (short value)=0 |
Writes two bytes to the output stream to represent the value of the argument. | |
virtual void | writeDouble (double value)=0 |
Writes a double value, which is comprised of eight bytes, to the output stream. | |
virtual void | writeFloat (float value)=0 |
Writes a float value, which is comprised of four bytes, to the output stream. | |
virtual void | writeChar (char value)=0 |
Writes to the output stream the eight low- order bits of the argument. | |
virtual void | writeChars (const std::string &value)=0 |
Writes a string to the output stream. | |
virtual void | writeFully (const std::vector< char > &value)=0 |
Writes to the output stream all the bytes of the vector. | |
virtual Object & | self () |
Returns a reference to itself. | |
virtual const Object & | self () const |
Object * | clone () const |
Instantiates another object of the same class as a copy of itself. | |
virtual const Class | getClass () const |
Returns the object's class. | |
virtual uint64_t | getId () const |
Returns a unique object id. | |
virtual const String | toString () const |
Returns a string representation of the object. By default, it returns the object's class and the objects's id. | |
virtual const String | inspect () const |
Returns a string containing human-readable representation of the object. |
Object* sk::util::Object::clone | ( | ) | const [inherited] |
Instantiates another object of the same class as a copy of itself.
Reimplemented in sk::rt::logger::Destination, and sk::util::String.
virtual const Class sk::util::Object::getClass | ( | ) | const [virtual, inherited] |
Returns the object's class.
Reimplemented in sk::cppunit::SourcePath, sk::io::AbstractInputStream, sk::io::AbstractOutputStream, sk::io::AbstractPipe, sk::io::AnonymousPipe, sk::io::BufferedInputStream, sk::io::BufferedOutputStream, sk::io::ByteArrayInputStream, sk::io::ByteArrayOutputStream, sk::io::ClosedChannelException, sk::io::DataInputStream, sk::io::DataOutputStream, sk::io::DelegatingInputStream, sk::io::DelegatingOutputStream, sk::io::DelegatingTty, sk::io::EOFException, sk::io::File, sk::io::FileDescriptor, sk::io::FileDescriptorInputStream, sk::io::FileDescriptorOutputStream, sk::io::FileInputStream, sk::io::FileOutputStream, sk::io::IOException, sk::io::Pty, sk::io::TtyDevice, sk::io::TtyFileDescriptor, sk::net::ip4::Address, sk::rt::config::CwdUprootLocator, sk::rt::config::HomeLocator, sk::rt::config::InlineLocator, sk::rt::config::SpotLocator, sk::rt::config::UprootLocator, sk::rt::logger::Level, sk::rt::logger::Spot, sk::rt::logger::Stream, sk::rt::Mutex, sk::rt::ReentrantLock, sk::rt::scope::Aggregator, sk::rt::scope::Controller, sk::rt::Scope, sk::rt::thread::abstract::Factory, sk::rt::thread::AbstractLock, sk::rt::thread::Exit, sk::rt::thread::State, sk::rt::Thread, sk::sys::AbstractProcessListener, sk::sys::DelegatingExecutable, sk::sys::Group, sk::sys::Pipeline, sk::sys::PipeProcess, sk::sys::Process, sk::sys::PtyProcess, sk::sys::User, sk::util::AbstractCollection< T >, sk::util::AbstractList< T >, sk::util::ArrayList< T >, sk::util::Boolean, sk::util::Class, sk::util::Container, sk::util::Exception, sk::util::IllegalStateException, sk::util::IndexOutOfBoundsException, sk::util::InsufficientMemoryException, sk::util::Integer, sk::util::InterruptedException, sk::util::Method, sk::util::MissingResourceException, sk::util::NoSuchElementException, sk::util::NullPointerException, sk::util::NumberFormatException, sk::util::Pathname, sk::util::String, sk::util::StringArray, sk::util::StringHash, sk::util::SystemException, sk::util::UnsupportedOperationException, sk::util::AbstractCollection< T >, and sk::util::AbstractList< T >.
virtual uint64_t sk::util::Object::getId | ( | ) | const [virtual, inherited] |
virtual const String sk::util::Object::inspect | ( | ) | const [virtual, inherited] |
Returns a string containing human-readable representation of the object.
Reimplemented in sk::rt::thread::AbstractLock, sk::rt::Thread, sk::util::Class, sk::util::Container, sk::util::slot::Pointer< T, Mixin >, sk::util::slot::Reference< T, Mixin >, sk::util::String, and sk::util::StringArray.
virtual const Object& sk::util::Object::self | ( | ) | const [virtual, inherited] |
Reimplemented in sk::util::String.
virtual Object& sk::util::Object::self | ( | ) | [virtual, inherited] |
virtual const String sk::util::Object::toString | ( | ) | const [virtual, inherited] |
Returns a string representation of the object. By default, it returns the object's class and the objects's id.
Reimplemented in sk::rt::logger::Level, sk::rt::thread::State, sk::util::Boolean, sk::util::Class, sk::util::Container, sk::util::Pathname, and sk::util::String.
virtual void sk::io::DataOutput::writeChar | ( | char | value | ) | [pure virtual] |
Writes to the output stream the eight low- order bits of the argument.
Implemented in sk::io::DataOutputStream.
virtual void sk::io::DataOutput::writeChars | ( | const std::string & | value | ) | [pure virtual] |
virtual void sk::io::DataOutput::writeDouble | ( | double | value | ) | [pure virtual] |
Writes a double value, which is comprised of eight bytes, to the output stream.
Implemented in sk::io::DataOutputStream.
virtual void sk::io::DataOutput::writeFloat | ( | float | value | ) | [pure virtual] |
Writes a float value, which is comprised of four bytes, to the output stream.
Implemented in sk::io::DataOutputStream.
virtual void sk::io::DataOutput::writeFully | ( | const std::vector< char > & | value | ) | [pure virtual] |
virtual void sk::io::DataOutput::writeInt | ( | int | value | ) | [pure virtual] |
Writes an int value, which is comprised of four bytes, to the output stream.
Implemented in sk::io::DataOutputStream.
virtual void sk::io::DataOutput::writeLong | ( | long long | value | ) | [pure virtual] |
Writes a long value, which is comprised of eight bytes, to the output stream.
Implemented in sk::io::DataOutputStream.
virtual void sk::io::DataOutput::writeShort | ( | short | value | ) | [pure virtual] |
Writes two bytes to the output stream to represent the value of the argument.
Implemented in sk::io::DataOutputStream.