BinaryDataExtensions ToByteArrayWithLengthHeader Method Delta Engine Documentation

Namespace: DeltaEngine.Core
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public static byte[] ToByteArrayWithLengthHeader(
	Object message
)

Return Value

Type:  Byte 
Remarks

Tests: DeltaEngine.Tests.Core.BinaryDataExtensionsTests
Examples

1 unit tests call DeltaEngine.Core.BinaryDataExtensions.ToByteArrayWithLengthHeader(System.Object)
[Test]
public void ObjectToBinaryData()
{
    string message = "This message cannot be resolved!";
    byte [] data = BinaryDataExtensions.ToByteArrayWithLengthHeader(message);
    Assert.AreEqual(data[0], 44);
}
See Also