checkBlockSize static method

int checkBlockSize(
  1. int value
)

Implementation

static int checkBlockSize(int value)
{
    if (!(8 <= value && value <= 1024))
    {
        throw "The block size must be between 8 and 1024.";
    }

    return value;
}