• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Class CompactWriter

CompactWriter is the base class for CompactBinaryWriter.

Inheritance
System.Object
CompactWriter
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public abstract class CompactWriter

Properties

BaseStream

Memory stream on which the bytes are written to

Declaration
public abstract Stream BaseStream { get; }
Property Value
Type Description
System.IO.Stream

Methods

Write(Boolean)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(bool value)
Parameters
Type Name Description
System.Boolean value

Object to write

Write(Byte)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(byte value)
Parameters
Type Name Description
System.Byte value

Object to write

Write(Byte[])

Writes buffer to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(byte[] buffer)
Parameters
Type Name Description
System.Byte[] buffer

Object to write

Write(Byte[], Int32, Int32)

Writes buffer to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(byte[] buffer, int index, int count)
Parameters
Type Name Description
System.Byte[] buffer

buffer to write

System.Int32 index

starting position in the buffer

System.Int32 count

number of bytes to write

Write(Char)

Writes ch to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(char ch)
Parameters
Type Name Description
System.Char ch

Object to write

Write(Char[])

Writes chars to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(char[] chars)
Parameters
Type Name Description
System.Char[] chars

Object to write

Write(Char[], Int32, Int32)

Writes chars to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(char[] chars, int index, int count)
Parameters
Type Name Description
System.Char[] chars

buffer to write

System.Int32 index

starting position in the buffer

System.Int32 count

number of bytes to write

Write(DateTime)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(DateTime value)
Parameters
Type Name Description
System.DateTime value

Object to write

Write(Decimal)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(decimal value)
Parameters
Type Name Description
System.Decimal value

Object to write

Write(Double)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(double value)
Parameters
Type Name Description
System.Double value

Object to write

Write(Guid)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(Guid value)
Parameters
Type Name Description
System.Guid value

Object to write

Write(Int16)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(short value)
Parameters
Type Name Description
System.Int16 value

Object to write

Write(Int32)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(int value)
Parameters
Type Name Description
System.Int32 value

Object to write

Write(Int64)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(long value)
Parameters
Type Name Description
System.Int64 value

Object to write

Write(SByte)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
[CLSCompliant(false)]
public virtual void Write(sbyte value)
Parameters
Type Name Description
System.SByte value

Object to write

Write(Single)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(float value)
Parameters
Type Name Description
System.Single value

Object to write

Write(String)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
public abstract void Write(string value)
Parameters
Type Name Description
System.String value

Object to write

Write(UInt16)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
[CLSCompliant(false)]
public virtual void Write(ushort value)
Parameters
Type Name Description
System.UInt16 value

Object to write

Write(UInt32)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
[CLSCompliant(false)]
public virtual void Write(uint value)
Parameters
Type Name Description
System.UInt32 value

Object to write

Write(UInt64)

Writes value to the current stream and advances the stream position. This method writes directly to the underlying stream.

Declaration
[CLSCompliant(false)]
public virtual void Write(ulong value)
Parameters
Type Name Description
System.UInt64 value

Object to write

WriteObject(Object)

Writes graph to the current stream and advances the stream position.

Declaration
public abstract void WriteObject(object graph)
Parameters
Type Name Description
System.Object graph

Object to write

WriteObjectAs<T>(T)

Writes the specified type to the current stream and advances the stream position.

Declaration
public abstract void WriteObjectAs<T>(T graph)
Parameters
Type Name Description
T graph
Type Parameters
Name Description
T

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top