Docs Menu

MongoDB\GridFS\Bucket::getChunkSizeBytes()

バージョン 1.2 で変更

MongoDB\GridFS\Bucket::getChunkSizeBytes()

このバケットのチャンク サイズをバイト単位で返します。

function getChunkSizeBytes(): integer

このバケットのチャンク サイズ(バイト単位)。

<?php
$bucket = (new MongoDB\Client)->test->selectGridFSBucket();
var_dump($bucket->getChunkSizeBytes());

出力は次のようになります。

int(261120)