ArrayExtensionsToByteArray Method |
Converts a short array to a byte array.
Namespace: StreamCoders.HelpersAssembly: 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
)
<ExtensionAttribute>
Public Shared Function ToByteArray (
inputBuffer As Short(),
offset As Integer,
count As Integer
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ ToByteArray(
array<short>^ inputBuffer,
int offset,
int count
)
[<ExtensionAttribute>]
static member ToByteArray :
inputBuffer : int16[] *
offset : int *
count : int -> byte[]
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