Collapse All Expand All | Language Filter: C#Language Filter: Visual Basic Language Filter: Visual C++ C# Visual Basic Visual C++ | See Also
StreamBase Client API
ByteArrayView..::CompareTo Method

Compare this ByteArrayView to another lexigraphically. NB: No data is copied when doing this.

Namespace: StreamBase.SB
Assembly: StreamBase.SB.Client (in StreamBase.SB.Client.dll) Version: 10.3.0.0

# Syntax

| C# |  |  | Visual Basic |  |  | Visual C++ |

    public int CompareTo(
    	ByteArrayView bav
    )

    Public Function CompareTo ( _
    	bav As ByteArrayView _
    ) As Integer

    public:
    virtual int CompareTo(
    	ByteArrayView^ bav
    ) sealed

#### Parameters

bav
  ByteArrayView
  The ByteArrayView to which to compare.

#### Return Value

-1 if the current array is less than the given array, 1 if the given array is greater, or 0 if both are identical.

# See Also

ByteArrayView Class
StreamBase.SB Namespace