# BufferMapState

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/BufferMapState.kt+class:androidx.webgpu.BufferMapState) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
public final class BufferMapState
```

<br />

*** ** * ** ***

Describes the current mapping state of a buffer.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BufferMapState#Mapped() = 3` The buffer is mapped and its contents are accessible. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BufferMapState#Pending() = 2` The buffer is in the process of being mapped. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BufferMapState#Unmapped() = 1` The buffer is not mapped. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/BufferMapState#toString(kotlin.Int)(int value)` |

## Constants

### Mapped

```
public static final int Mapped = 3
```

The buffer is mapped and its contents are accessible.

### Pending

```
public static final int Pending = 2
```

The buffer is in the process of being mapped.

### Unmapped

```
public static final int Unmapped = 1
```

The buffer is not mapped.

## Public methods

### toString

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static final @NonNull String toString(int value)
```