---
Product: psd
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/psd/python/bigendianreader
---

# BigEndianReader

## Overview

`BigEndianReader` is a class in Aspose.PSD FOSS for Python.

Reads big-endian data from a stream.

This class declares 21 methods for BigEndianReader objects in Python programs.
Available methods include: `__enter__`, `__exit__`, `__init__`, `dispose`, `read_byte`, `read_bytes`, `read_double`, `read_exactly`, `read_int16`, `read_int32`, `read_int64`, `read_pascal_string`, and 9 additional methods.
Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package.
Properties: `length`, `position`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `position` | `int` | Read | Gets the position. |
| `length` | `int` | Read | Gets the length. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(stream: io.BufferedIOBase, leave_open: bool)` | Calls __init__(stream, leave_open) on this BigEndianReader instance. |
| `seek(offset: int, origin: int)` | Calls seek(offset, origin) on this BigEndianReader instance. |
| `read_byte()` → `int` | Calls read_byte on this BigEndianReader instance. |
| `read_sbyte()` → `int` | Calls read_sbyte on this BigEndianReader instance. |
| `read_bytes(count: int)` → `bytes` | Calls read_bytes(count) on this BigEndianReader instance. |
| `read_int16()` → `int` | Calls read_int16 on this BigEndianReader instance. |
| `read_uint16()` → `int` | Calls read_uint16 on this BigEndianReader instance. |
| `read_int32()` → `int` | Calls read_int32 on this BigEndianReader instance. |
| `read_uint32()` → `int` | Calls read_uint32 on this BigEndianReader instance. |
| `read_int64()` → `int` | Calls read_int64 on this BigEndianReader instance. |
| `read_uint64()` → `int` | Calls read_uint64 on this BigEndianReader instance. |
| `read_single()` → `float` | Calls read_single on this BigEndianReader instance. |
| `read_double()` → `float` | Calls read_double on this BigEndianReader instance. |
| `read_pascal_string(max_length: int)` → `str` | Calls read_pascal_string(max_length) on this BigEndianReader instance. |
| `read_pascal_string_aligned_to2(max_length: int)` → `str` | Calls read_pascal_string_aligned_to2(max_length) on this BigEndianReader instance. |
| `read_pascal_string_aligned_to4(max_length: int)` → `str` | Calls read_pascal_string_aligned_to4(max_length) on this BigEndianReader instance. |
| `read_exactly(size: int)` → `bytes` | Calls read_exactly(size) on this BigEndianReader instance. |
| `skip(count: int)` | Calls skip(count) on this BigEndianReader instance. |
| `dispose()` | Calls dispose on this BigEndianReader instance. |
| `__enter__()` | Calls __enter__ on this BigEndianReader instance. |
| `__exit__(exc_type, exc_val, exc_tb)` | Calls __exit__(exc_type, exc_val, exc_tb) on this BigEndianReader instance. |

## See Also

- [Aspose.PSD for Python — Enterprise API Reference](https://reference.aspose.com/psd/python-net/)