Click or drag to resize

ExtensionsGetBytes Method (Byte, Int32, Int32)

Gets a specified length of bytes

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static byte[] GetBytes(
	this byte[] target,
	int startingPosition,
	int length
)

Parameters

target
Type: SystemByte
The Array that contains the data to copy.
startingPosition
Type: SystemInt32
A 32-bit integer that represents the index in the sourceArray at which copying begins.
length
Type: SystemInt32
A 32-bit integer that represents the number of elements to copy.

Return Value

Type: Byte

[Missing <returns> documentation for "M:Cauldron.Extensions.GetBytes(System.Byte[],System.Int32,System.Int32)"]

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).
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Parameter startingPosition and length are out of range
See Also