Class Extensions
Contains extensions methods for native .NET objects.
Inheritance
System.Object
Extensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Common.IO.Mapped
Assembly: Mars.IO.dll
Syntax
public static class Extensions
Methods
| Improve this Doc View SourceCopyToWithSize(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 | |
System.IO.Stream | stream |
Returns
Type | Description |
---|---|
System.Int64 |