Class Extensions
Contains extensions methods for native .NET objects.
Inheritance
System.Object
Extensions
Namespace: Mars.Common.IO.Mapped
Assembly: Mars.IO.dll
Syntax
public static class Extensions : object
Methods
CopyToWithSize(ISerializableToStream, Stream)
Copies all data to the given stream starting at it's current position prefixed with 8 bytes containing the size.
Declaration
public static long CopyToWithSize(this ISerializableToStream serializable, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
ISerializableToStream | serializable | |
Stream | stream |
Returns
Type | Description |
---|---|
System.Int64 |