ArrayExtensionsToShortArray Method |
Converts a byte array to a short array.
Namespace: StreamCoders.HelpersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntaxpublic static short[] ToShortArray(
this byte[] inputBuffer,
int offset,
int count
)
<ExtensionAttribute>
Public Shared Function ToShortArray (
inputBuffer As Byte(),
offset As Integer,
count As Integer
) As Short()
public:
[ExtensionAttribute]
static array<short>^ ToShortArray(
array<unsigned char>^ inputBuffer,
int offset,
int count
)
[<ExtensionAttribute>]
static member ToShortArray :
inputBuffer : byte[] *
offset : int *
count : int -> int16[]
Parameters
- inputBuffer
- Type: SystemByte
The inputBuffer to act on.
- offset
- Type: SystemInt32
The offset.
- count
- Type: SystemInt32
Number of bytes to use.
Return Value
Type:
Int16
The given data converted to a short[].
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