Click or drag to resize
ArrayExtensionsToByteArray Method
Converts a short array to a byte array.

Namespace: StreamCoders.Helpers
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public static byte[] ToByteArray(
	this short[] inputBuffer,
	int offset,
	int count
)

Parameters

inputBuffer
Type: SystemInt16
The inputBuffer to act on.
offset
Type: SystemInt32
The offset.
count
Type: SystemInt32
Number of bytes to use.

Return Value

Type: Byte
The given data converted to a byte[].

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also