# 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. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://web-api.iceteagroup.com/ppj.web.49/types/ppj.runtime.salbinary.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
