Takes a value, converts it from little-endian to big-endian and the copies it to the
ArraySegment<T> at a given offset and length.
Namespace: Couchbase.UtilsAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static void ConvertAndCopy(
this ArraySegment<byte> arraySegment,
uint value,
int offset,
int count
)
public static void ConvertAndCopy(
this ArraySegment<byte> arraySegment,
uint value,
int offset,
int count
)
<ExtensionAttribute>
Public Shared Sub ConvertAndCopy (
arraySegment As ArraySegment(Of Byte),
value As UInteger,
offset As Integer,
count As Integer
)
<ExtensionAttribute>
Public Shared Sub ConvertAndCopy (
arraySegment As ArraySegment(Of Byte),
value As UInteger,
offset As Integer,
count As Integer
)
public:
[ExtensionAttribute]
static void ConvertAndCopy(
ArraySegment<unsigned char> arraySegment,
unsigned int value,
int offset,
int count
)
public:
[ExtensionAttribute]
static void ConvertAndCopy(
ArraySegment<unsigned char> arraySegment,
unsigned int value,
int offset,
int count
)
static member ConvertAndCopy :
arraySegment : ArraySegment<byte> *
value : uint32 *
offset : int *
count : int -> unit
static member ConvertAndCopy :
arraySegment : ArraySegment<byte> *
value : uint32 *
offset : int *
count : int -> unit
Parameters
- arraySegment
- Type: System.ArraySegment<Byte>
The ArraySegment<T> to copy the value to.
- value
- Type: System.UInt32
An UInt32 to copy to the ArraySegment<T>.
- offset
- Type: System.Int32
The offset to write the value to within the ArraySegment<T>
- count
- Type: System.Int32
The length of the write - e.g. 4 for a int, 8 for a long.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ArraySegment<Byte>. 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