# SalBinary

Namespace: **PPJ.Runtime**

Assembly: **PPJ.Runtime.49** (4.9.0.0)

SAL Binary type (TD6).

{% tabs %}
{% tab title="C#" %}

```csharp
public class SalBinary : ISalType
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class SalBinary
    Inherits ISalType
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SalBinary()

Constructs a new SalString object containing an empty string.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SalBinary(buffer)

Constructs a new SalString object.

| Name       | Type                                                                | Description |
| ---------- | ------------------------------------------------------------------- | ----------- |
| **buffer** | [Byte\[\]](https://docs.microsoft.com/en-us/dotnet/api/system.byte) |             |

## Fields

| Name      | Type                                                                                        | Description |
| --------- | ------------------------------------------------------------------------------------------- | ----------- |
| **Empty** | [SalBinary](https://desktop-api.iceteagroup.com/ppj.runtime.49/types/ppj.runtime.salbinary) | empty value |

## Properties

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)IsNull

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Checks if this SalBinary object contains a null value.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Length

[SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/types/ppj.runtime.salbinary): Returns the buffer's length.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Value

[Byte\[\]](https://docs.microsoft.com/en-us/dotnet/api/system.byte): Returns the inner byte\[] value

## Methods

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetBufferLength()

Returns the current buffer length of the string.

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/types/ppj.runtime.salbinary). nLength

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SetBufferLength(target, length)

| Parameter  | Type                                                                                         | Description |
| ---------- | -------------------------------------------------------------------------------------------- | ----------- |
| **target** | [SalBinary&](https://desktop-api.iceteagroup.com/ppj.runtime.49/types/ppj.runtime.salbinary) |             |
| **length** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                            |             |

**Returns:** [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean).

## Implements

| Name                                                                                       | Description                          |
| ------------------------------------------------------------------------------------------ | ------------------------------------ |
| [ISalType](https://desktop-api.iceteagroup.com/ppj.runtime.49/types/ppj.runtime.salbinary) | Common base interface for Sal types. |
