> For the complete documentation index, see [llms.txt](https://web-api.iceteagroup.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web-api.iceteagroup.com/ppj.web.49/types/ppj.runtime.salbinary.md).

# SalBinary

Namespace: **PPJ.Runtime**

Assembly: **PPJ.Web.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

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalBinary()

Constructs a new SalString object containing an empty string.

### ![](/files/qoQXnPICsjBVNBSqpOj9)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://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salbinary.md) | empty value |

## Properties

### ![](/files/qoQXnPICsjBVNBSqpOj9)IsNull

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

### ![](/files/qoQXnPICsjBVNBSqpOj9)Length

[SalNumber](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salnumber.md): Returns the buffer's length.

### ![](/files/qoQXnPICsjBVNBSqpOj9)Value

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

## Methods

### ![](/files/qoQXnPICsjBVNBSqpOj9)GetBufferLength()

Returns the current buffer length of the string.

**Returns:** [SalNumber](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salnumber.md). nLength

### ![](/files/qoQXnPICsjBVNBSqpOj9)SetBufferLength(target, length)

| Parameter  | Type                                                              | Description |
| ---------- | ----------------------------------------------------------------- | ----------- |
| **target** | [SalBinary&](/ppj.web.49/types/ppj.runtime.salbinary.md)          |             |
| **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://docs.wisej.com/extensions/ppj.web.49/interfaces/ppj.runtime.isaltype.md) | Common base interface for Sal types. |
