Skip to main content
Skip table of contents

ByteBuffer

ByteBuffer Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.ByteBuffer[[ByteBuffer]]
  end
  subgraph System.IO
System.IO.Stream[[Stream]]
  end
System.IO.Stream --> iTextSharp.text.pdf.ByteBuffer

Members

Properties

Public properties
TypeNameMethods
byte``[]Bufferget
boolCanReadget
boolCanSeekget
boolCanWriteget
longLengthget
longPositionget, set
intSizeget, set

Methods

Public Static methods
ReturnsName
voidFillCache(int decimals)
stringFormatDouble(...)
voidSetCacheSize(int size)
Public methods
ReturnsName
ByteBufferAppend(...)
ByteBufferAppendHex(byte b)
ByteBufferAppend_i(int b)
voidFlush()
intRead(byte``[] buffer, int offset, int count)
voidReset()
longSeek(long offset, SeekOrigin origin)
voidSetLength(long value)
byte``[]ToByteArray()
stringToString()
voidWrite(byte``[] buffer, int offset, int count)
voidWriteByte(byte value)
voidWriteTo(Stream str)

Details

Inheritance

  • Stream

Constructors

ByteBuffer [1/2]

Source code

public ByteBuffer()
ByteBuffer [2/2]

Source code

public ByteBuffer(int size)
Arguments
TypeNameDescription
intsize

Methods

SetCacheSize

Source code

public static void SetCacheSize(int size)
Arguments
TypeNameDescription
intsize
FillCache

Source code

public static void FillCache(int decimals)
Arguments
TypeNameDescription
intdecimals
Append_i

Source code

public virtual ByteBuffer Append_i(int b)
Arguments
TypeNameDescription
intb
Append [1/10]

Source code

public virtual ByteBuffer Append(byte[] b, int off, int len)
Arguments
TypeNameDescription
byte``[]b
intoff
intlen
Append [2/10]

Source code

public virtual ByteBuffer Append(byte[] b)
Arguments
TypeNameDescription
byte``[]b
Append [3/10]

Source code

public virtual ByteBuffer Append(string str)
Arguments
TypeNameDescription
stringstr
Append [4/10]

Source code

public virtual ByteBuffer Append(char c)
Arguments
TypeNameDescription
charc
Append [5/10]

Source code

public virtual ByteBuffer Append(ByteBuffer buf)
Arguments
TypeNameDescription
ByteBufferbuf
Append [6/10]

Source code

public virtual ByteBuffer Append(int i)
Arguments
TypeNameDescription
inti
Append [7/10]

Source code

public virtual ByteBuffer Append(long i)
Arguments
TypeNameDescription
longi
Append [8/10]

Source code

public virtual ByteBuffer Append(byte b)
Arguments
TypeNameDescription
byteb
AppendHex

Source code

public virtual ByteBuffer AppendHex(byte b)
Arguments
TypeNameDescription
byteb
Append [9/10]

Source code

public virtual ByteBuffer Append(float i)
Arguments
TypeNameDescription
floati
Append [10/10]

Source code

public virtual ByteBuffer Append(double d)
Arguments
TypeNameDescription
doubled
FormatDouble [1/2]

Source code

public static string FormatDouble(double d)
Arguments
TypeNameDescription
doubled
FormatDouble [2/2]

Source code

public static string FormatDouble(double d, ByteBuffer buf)
Arguments
TypeNameDescription
doubled
ByteBufferbuf
Reset

Source code

public virtual void Reset()
ToByteArray

Source code

public virtual byte ToByteArray()
ToString

Source code

public override string ToString()
WriteTo

Source code

public virtual void WriteTo(Stream str)
Arguments
TypeNameDescription
Streamstr
Flush

Source code

public override void Flush()
Read

Source code

public override int Read(byte[] buffer, int offset, int count)
Arguments
TypeNameDescription
byte``[]buffer
intoffset
intcount
Seek

Source code

public override long Seek(long offset, SeekOrigin origin)
Arguments
TypeNameDescription
longoffset
SeekOriginorigin
SetLength

Source code

public override void SetLength(long value)
Arguments
TypeNameDescription
longvalue
Write

Source code

public override void Write(byte[] buffer, int offset, int count)
Arguments
TypeNameDescription
byte``[]buffer
intoffset
intcount
WriteByte

Source code

public override void WriteByte(byte value)
Arguments
TypeNameDescription
bytevalue

Properties

Size
public virtual int Size { get; set; }
Buffer
public virtual byte Buffer { get; }
CanRead
public override bool CanRead { get; }
CanSeek
public override bool CanSeek { get; }
CanWrite
public override bool CanWrite { get; }
Length
public override long Length { get; }
Position
public override long Position { get; set; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.