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

*** ** * ** ***


```
class BufferMapState
```

<br />

*** ** * ** ***

Describes the current mapping state of a buffer.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferMapState#Mapped() = 3` The buffer is mapped and its contents are accessible. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferMapState#Pending() = 2` The buffer is in the process of being mapped. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferMapState#Unmapped() = 1` The buffer is not mapped. |

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferMapState#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### Mapped

```
const val Mapped = 3: Int
```

The buffer is mapped and its contents are accessible.

### Pending

```
const val Pending = 2: Int
```

The buffer is in the process of being mapped.

### Unmapped

```
const val Unmapped = 1: Int
```

The buffer is not mapped.

## Public companion functions

### toString

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

```
fun toString(value: Int): String
```