Gets the length of a buffer.
Namespace: Couchbase.IO.UtilsAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)

Parameters
- buffer
- Type:System.Byte[]
[Missing <param name="buffer"/> documentation for "M:Couchbase.IO.Utils.BufferExtensions.GetLengthSafe(System.Byte[])"]
Return Value
Type: Int320 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).