public int GetFileBufferMaxSize() { //6 should be the max_apdu_header_length for Confirmed (with segmentation) //12 should be the max_atomic_write_file return GetMaxApdu() - 18; }