BufferExtensions GetLengthSafe Method Couchbase .NET SDK 2.0
Gets the length of a buffer.

Namespace: Couchbase.IO.Utils
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static int GetLengthSafe(
	this byte[] buffer
)

Parameters

buffer
Type:  System Byte 

[Missing <param name="buffer"/> documentation for "M:Couchbase.IO.Utils.BufferExtensions.GetLengthSafe(System.Byte[])"]

Return Value

Type: Int32
0 if the buffer is null, otherwise the length of the buffer.

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