18 #ifndef _DECAF_IO_DATAOUTPUTSTREAM_H_ 19 #define _DECAF_IO_DATAOUTPUTSTREAM_H_ 41 unsigned char buffer[8];
67 virtual long long size()
const {
74 virtual void writeBoolean(
bool value);
79 virtual void writeByte(
unsigned char value);
84 virtual void writeShort(
short value);
89 virtual void writeUnsignedShort(
unsigned short value);
94 virtual void writeChar(
char value);
99 virtual void writeInt(
int value);
104 virtual void writeLong(
long long value);
109 virtual void writeFloat(
float value);
114 virtual void writeDouble(
double value);
119 virtual void writeBytes(
const std::string& value);
124 virtual void writeChars(
const std::string& value);
129 virtual void writeUTF(
const std::string& value);
133 virtual void doWriteByte(
unsigned char value);
135 virtual void doWriteArrayBounded(
const unsigned char* buffer,
int size,
int offset,
int length);
140 unsigned int countUTFLength(
const std::string& value);
virtual long long size() const
Returns the current value of the counter written, the number of bytes written to this data output str...
Definition: DataOutputStream.h:67
long long written
Definition: DataOutputStream.h:38
A data output stream lets an application write primitive Java data types to an output stream in a por...
Definition: DataOutputStream.h:34
This class is the superclass of all classes that filter output streams.
Definition: FilterOutputStream.h:49
#define DECAF_API
Definition: Config.h:29
Base interface for any class that wants to represent an output stream of bytes.
Definition: OutputStream.h:39
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25