# Struct BufferRequirements

Namespace
  Npgsql.Internal

Assembly
  Npgsql.dll

    [Experimental("NPG9001")]
    public readonly struct BufferRequirements : IEquatable<BufferRequirements>

Implements
  IEquatable<BufferRequirements>

Inherited Members
  ValueType.ToString()
  object.Equals(object, object)
  object.GetType()
  object.ReferenceEquals(object, object)

## Properties

### None

    public static BufferRequirements None { get; }

#### Property Value

BufferRequirements

### Read

    public Size Read { get; }

#### Property Value

Size

### Value

    public static BufferRequirements Value { get; }

#### Property Value

BufferRequirements

### Write

    public Size Write { get; }

#### Property Value

Size

## Methods

### Combine(BufferRequirements)

    public BufferRequirements Combine(BufferRequirements other)

#### Parameters

`other` BufferRequirements

#### Returns

BufferRequirements

### Combine(Size, Size)

    public BufferRequirements Combine(Size read, Size write)

#### Parameters

`read` Size
`write` Size

#### Returns

BufferRequirements

### Combine(int)

    public BufferRequirements Combine(int byteCount)

#### Parameters

`byteCount` int

#### Returns

BufferRequirements

### Create(Size)

    public static BufferRequirements Create(Size value)

#### Parameters

`value` Size

#### Returns

BufferRequirements

### Create(Size, Size)

    public static BufferRequirements Create(Size read, Size write)

#### Parameters

`read` Size
`write` Size

#### Returns

BufferRequirements

### CreateFixedSize(int)

    public static BufferRequirements CreateFixedSize(int byteCount)

#### Parameters

`byteCount` int

#### Returns

BufferRequirements

### Equals(BufferRequirements)

Indicates whether the current object is equal to another object of the same type.

    public bool Equals(BufferRequirements other)

#### Parameters

`other` BufferRequirements

  An object to compare with this object.

#### Returns

bool

  true if the current object is equal to the `other` parameter; otherwise, false.

### Equals(object?)

Indicates whether this instance and a specified object are equal.

    public override bool Equals(object? obj)

#### Parameters

`obj` object

  The object to compare with the current instance.

#### Returns

bool

  true if `obj` and this instance are the same type and represent the same value; otherwise, false.

### GetHashCode()

Returns the hash code for this instance.

    public override int GetHashCode()

#### Returns

int

  A 32-bit signed integer that is the hash code for this instance.

## Operators

### operator ==(BufferRequirements, BufferRequirements)

    public static bool operator ==(BufferRequirements left, BufferRequirements right)

#### Parameters

`left` BufferRequirements
`right` BufferRequirements

#### Returns

bool

### operator !=(BufferRequirements, BufferRequirements)

    public static bool operator !=(BufferRequirements left, BufferRequirements right)

#### Parameters

`left` BufferRequirements
`right` BufferRequirements

#### Returns

bool