summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-21 12:35:05 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-21 12:35:05 +0200
commitd2e8f6114903bd3f4841cec91bc77c1ca7e8dca4 (patch)
tree88327ab5fc2eda9fbd905f284584fe5879fbe0a1 /src/devices/machine
parenta291e77b2cfc4ce1b780db0d8fa664fb8094d365 (diff)
dynamic_buffer is just std::vector<UINT8> (nw)
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/at28c16.cpp4
-rw-r--r--src/devices/machine/at45dbxx.h6
-rw-r--r--src/devices/machine/atahle.h2
-rw-r--r--src/devices/machine/dp8390.cpp2
-rw-r--r--src/devices/machine/i2cmem.h2
-rw-r--r--src/devices/machine/laserdsc.h2
-rw-r--r--src/devices/machine/mc146818.h2
-rw-r--r--src/devices/machine/nscsi_s1410.cpp2
-rw-r--r--src/devices/machine/ram.h2
-rw-r--r--src/devices/machine/serflash.h2
-rw-r--r--src/devices/machine/stvcd.cpp2
-rw-r--r--src/devices/machine/timekpr.h2
12 files changed, 15 insertions, 15 deletions
diff --git a/src/devices/machine/at28c16.cpp b/src/devices/machine/at28c16.cpp
index f54e28f8bda..bc6900924eb 100644
--- a/src/devices/machine/at28c16.cpp
+++ b/src/devices/machine/at28c16.cpp
@@ -136,7 +136,7 @@ void at28c16_device::nvram_default()
void at28c16_device::nvram_read( emu_file &file )
{
- dynamic_buffer buffer( AT28C16_TOTAL_BYTES );
+ std::vector<UINT8> buffer( AT28C16_TOTAL_BYTES );
file.read( &buffer[0], AT28C16_TOTAL_BYTES );
@@ -153,7 +153,7 @@ void at28c16_device::nvram_read( emu_file &file )
void at28c16_device::nvram_write( emu_file &file )
{
- dynamic_buffer buffer ( AT28C16_TOTAL_BYTES );
+ std::vector<UINT8> buffer ( AT28C16_TOTAL_BYTES );
for( offs_t offs = 0; offs < AT28C16_TOTAL_BYTES; offs++ )
{
diff --git a/src/devices/machine/at45dbxx.h b/src/devices/machine/at45dbxx.h
index 40688fd786e..449d95f9651 100644
--- a/src/devices/machine/at45dbxx.h
+++ b/src/devices/machine/at45dbxx.h
@@ -76,12 +76,12 @@ protected:
void write_byte(UINT8 data);
// internal state
- dynamic_buffer m_data;
+ std::vector<UINT8> m_data;
UINT32 m_size;
UINT8 m_mode;
UINT8 m_status;
- dynamic_buffer m_buffer1;
- //dynamic_buffer m_buffer2;
+ std::vector<UINT8> m_buffer1;
+ //std::vector<UINT8> m_buffer2;
UINT8 m_si_byte;
UINT8 m_si_bits;
UINT8 m_so_byte;
diff --git a/src/devices/machine/atahle.h b/src/devices/machine/atahle.h
index e26ad86b92c..29bc23bf9cd 100644
--- a/src/devices/machine/atahle.h
+++ b/src/devices/machine/atahle.h
@@ -175,7 +175,7 @@ protected:
attotime MINIMUM_COMMAND_TIME;
- dynamic_buffer m_buffer;
+ std::vector<UINT8> m_buffer;
UINT16 m_buffer_offset;
UINT16 m_buffer_size;
UINT8 m_error;
diff --git a/src/devices/machine/dp8390.cpp b/src/devices/machine/dp8390.cpp
index 52e66168322..32d41d73896 100644
--- a/src/devices/machine/dp8390.cpp
+++ b/src/devices/machine/dp8390.cpp
@@ -64,7 +64,7 @@ void dp8390_device::check_dma_complete() {
}
void dp8390_device::do_tx() {
- dynamic_buffer buf;
+ std::vector<UINT8> buf;
int i;
UINT32 high16 = (m_regs.dcr & 4)?m_regs.rsar<<16:0;
if(m_reset) return;
diff --git a/src/devices/machine/i2cmem.h b/src/devices/machine/i2cmem.h
index 801aa6de3bd..797df97d70a 100644
--- a/src/devices/machine/i2cmem.h
+++ b/src/devices/machine/i2cmem.h
@@ -142,7 +142,7 @@ protected:
int m_shift;
int m_devsel;
int m_byteaddr;
- dynamic_buffer m_page;
+ std::vector<UINT8> m_page;
int m_page_offset;
};
diff --git a/src/devices/machine/laserdsc.h b/src/devices/machine/laserdsc.h
index 1bb19bea0a0..7816bfa2d21 100644
--- a/src/devices/machine/laserdsc.h
+++ b/src/devices/machine/laserdsc.h
@@ -301,7 +301,7 @@ private:
// disc parameters
chd_file * m_disc; // handle to the disc itself
- dynamic_buffer m_vbidata; // pointer to precomputed VBI data
+ std::vector<UINT8> m_vbidata; // pointer to precomputed VBI data
int m_width; // width of video
int m_height; // height of video
UINT32 m_fps_times_1million; // frame rate of video
diff --git a/src/devices/machine/mc146818.h b/src/devices/machine/mc146818.h
index b7fffda3de7..a4651171179 100644
--- a/src/devices/machine/mc146818.h
+++ b/src/devices/machine/mc146818.h
@@ -172,7 +172,7 @@ private:
// internal state
UINT8 m_index;
- dynamic_buffer m_data;
+ std::vector<UINT8> m_data;
attotime m_last_refresh;
diff --git a/src/devices/machine/nscsi_s1410.cpp b/src/devices/machine/nscsi_s1410.cpp
index b486b4994e9..f1725329d9d 100644
--- a/src/devices/machine/nscsi_s1410.cpp
+++ b/src/devices/machine/nscsi_s1410.cpp
@@ -60,7 +60,7 @@ void nscsi_s1410_device::scsi_command()
blocks = (bytes_per_sector == 256) ? 32 : 17;
int track_length = blocks*bytes_per_sector;
- dynamic_buffer data(track_length);
+ std::vector<UINT8> data(track_length);
memset(&data[0], 0xc6, track_length);
if(!hard_disk_write(harddisk, lba, &data[0])) {
diff --git a/src/devices/machine/ram.h b/src/devices/machine/ram.h
index 73e7430a6ce..73a62b61f8d 100644
--- a/src/devices/machine/ram.h
+++ b/src/devices/machine/ram.h
@@ -77,7 +77,7 @@ protected:
private:
// device state
UINT32 m_size;
- dynamic_buffer m_pointer;
+ std::vector<UINT8> m_pointer;
// device config
const char *m_default_size;
diff --git a/src/devices/machine/serflash.h b/src/devices/machine/serflash.h
index 9d3654fc9c3..e72432cc109 100644
--- a/src/devices/machine/serflash.h
+++ b/src/devices/machine/serflash.h
@@ -88,7 +88,7 @@ protected:
UINT16 m_flash_page_index;
- dynamic_buffer m_flashwritemap;
+ std::vector<UINT8> m_flashwritemap;
UINT8 m_last_flash_cmd;
diff --git a/src/devices/machine/stvcd.cpp b/src/devices/machine/stvcd.cpp
index aed8d46aea1..f7e382ef176 100644
--- a/src/devices/machine/stvcd.cpp
+++ b/src/devices/machine/stvcd.cpp
@@ -2142,7 +2142,7 @@ void saturn_state::make_dir_current(UINT32 fad)
{
int i;
UINT32 nextent, numentries;
- dynamic_buffer sect(MAX_DIR_SIZE);
+ std::vector<UINT8> sect(MAX_DIR_SIZE);
direntryT *curentry;
memset(&sect[0], 0, MAX_DIR_SIZE);
diff --git a/src/devices/machine/timekpr.h b/src/devices/machine/timekpr.h
index f6ecb8dcbfc..e0e9aa6e60d 100644
--- a/src/devices/machine/timekpr.h
+++ b/src/devices/machine/timekpr.h
@@ -91,7 +91,7 @@ private:
UINT8 m_year;
UINT8 m_century;
- dynamic_buffer m_data;
+ std::vector<UINT8> m_data;
optional_region_ptr<UINT8> m_default_data;
protected: